mirror of
https://github.com/monero-project/monero.git
synced 2025-06-05 15:08:51 -04:00
functional_tests: reset blockchain on test start
This commit is contained in:
parent
375fde9454
commit
aba2b2e7a2
8 changed files with 57 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue