functional_tests: reset blockchain on test start

This commit is contained in:
moneromooo-monero 2019-04-19 22:47:44 +00:00
parent 375fde9454
commit aba2b2e7a2
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
8 changed files with 57 additions and 0 deletions

View file

@ -39,6 +39,7 @@ from framework.wallet import Wallet
class TransferTest():
def run_test(self):
self.reset()
self.create()
self.mine()
self.transfer()
@ -46,6 +47,12 @@ class TransferTest():
self.check_double_spend_detection()
self.sweep_single()
def reset(self):
print 'Resetting blockchain'
daemon = Daemon()
daemon.pop_blocks(1000)
daemon.flush_txpool()
def create(self):
print 'Creating wallets'
seeds = [