Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14864962
D11607.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
934 B
Subscribers
None
D11607.id.diff
View Options
diff --git a/test/functional/feature_coinstatsindex.py b/test/functional/feature_coinstatsindex.py
--- a/test/functional/feature_coinstatsindex.py
+++ b/test/functional/feature_coinstatsindex.py
@@ -241,6 +241,19 @@
})
self.block_sanity_check(res7['block_info'])
+ self.log.info("Test that the index is robust across restarts")
+
+ res8 = index_node.gettxoutsetinfo('muhash')
+ self.restart_node(1, extra_args=self.extra_args[1])
+ res9 = index_node.gettxoutsetinfo('muhash')
+ assert_equal(res8, res9)
+
+ index_node.generate(1)
+ self.wait_until(lambda: not try_rpc(-32603, "Unable to read UTXO set",
+ index_node.gettxoutsetinfo, 'muhash'))
+ res10 = index_node.gettxoutsetinfo('muhash')
+ assert(res8['txouts'] < res10['txouts'])
+
if __name__ == '__main__':
CoinStatsIndexTest().main()
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, May 20, 23:40 (35 m, 40 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5863258
Default Alt Text
D11607.id.diff (934 B)
Attached To
D11607: test: Test coinstatsindex robustness across restarts
Event Timeline
Log In to Comment