mirror of
https://github.com/monero-project/monero.git
synced 2026-01-05 09:17:40 -08:00
functional_tests: reset blockchain on test start
This commit is contained in:
@@ -43,9 +43,16 @@ from framework.wallet import Wallet
|
||||
|
||||
class MiningTest():
|
||||
def run_test(self):
|
||||
self.reset()
|
||||
self.create()
|
||||
self.mine()
|
||||
|
||||
def reset(self):
|
||||
print 'Resetting blockchain'
|
||||
daemon = Daemon()
|
||||
daemon.pop_blocks(1000)
|
||||
daemon.flush_txpool()
|
||||
|
||||
def create(self):
|
||||
print 'Creating wallet'
|
||||
wallet = Wallet()
|
||||
|
||||
Reference in New Issue
Block a user