mirror of
https://github.com/monero-project/monero.git
synced 2025-08-06 07:14:20 -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
|
@ -38,6 +38,7 @@ from framework.wallet import Wallet
|
|||
|
||||
class ProofsTest():
|
||||
def run_test(self):
|
||||
self.reset()
|
||||
self.mine('42ey1afDFnn4886T7196doS9GPMzexD9gXpsZJDwVjeRVdFCSoHnv7KPbBeGpzJBzHRCAs9UxqeoyFQMYbqSWYTfJJQAWDm', 80)
|
||||
self.create_wallets()
|
||||
txid, tx_key, amount = self.transfer()
|
||||
|
@ -45,6 +46,12 @@ class ProofsTest():
|
|||
self.check_tx_proof(txid, amount)
|
||||
self.check_reserve_proof()
|
||||
|
||||
def reset(self):
|
||||
print 'Resetting blockchain'
|
||||
daemon = Daemon()
|
||||
daemon.pop_blocks(1000)
|
||||
daemon.flush_txpool()
|
||||
|
||||
def mine(self, address, blocks):
|
||||
print("Mining some blocks")
|
||||
daemon = Daemon()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue