aboutsummaryrefslogtreecommitdiff
path: root/tests/functional_tests/proofs.py
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-19 22:47:44 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-20 11:28:19 +0000
commitaba2b2e7a2cb5cf3983d4d7e7e2946fbdb5e22be (patch)
tree926f432c78bbdfa78d8b3002f15c5d0936a20db6 /tests/functional_tests/proofs.py
parenthardfork: fix off by one updating fork index after popping (diff)
downloadmonero-aba2b2e7a2cb5cf3983d4d7e7e2946fbdb5e22be.tar.xz
functional_tests: reset blockchain on test start
Diffstat (limited to '')
-rwxr-xr-xtests/functional_tests/proofs.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/functional_tests/proofs.py b/tests/functional_tests/proofs.py
index 0a0b6304d..844131095 100755
--- a/tests/functional_tests/proofs.py
+++ b/tests/functional_tests/proofs.py
@@ -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()