mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 03:59:33 +00:00
functional_tests: add save_bc
This commit is contained in:
parent
230f73e121
commit
51bd45c352
2 changed files with 8 additions and 0 deletions
|
@ -330,6 +330,9 @@ class BlockchainTest():
|
||||||
for txid in [alt_blocks[0], alt_blocks[2], alt_blocks[4]]:
|
for txid in [alt_blocks[0], alt_blocks[2], alt_blocks[4]]:
|
||||||
assert len([chain for chain in res.chains if chain.block_hash == txid]) == 1
|
assert len([chain for chain in res.chains if chain.block_hash == txid]) == 1
|
||||||
|
|
||||||
|
print('Saving blockchain explicitely')
|
||||||
|
daemon.save_bc()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
BlockchainTest().run_test()
|
BlockchainTest().run_test()
|
||||||
|
|
|
@ -350,3 +350,8 @@ class Daemon(object):
|
||||||
'key_images': key_images,
|
'key_images': key_images,
|
||||||
}
|
}
|
||||||
return self.rpc.send_request('/is_key_image_spent', is_key_image_spent)
|
return self.rpc.send_request('/is_key_image_spent', is_key_image_spent)
|
||||||
|
|
||||||
|
def save_bc(self):
|
||||||
|
save_bc = {
|
||||||
|
}
|
||||||
|
return self.rpc.send_request('/save_bc', save_bc)
|
||||||
|
|
Loading…
Reference in a new issue