@@ -88,6 +88,10 @@ def wallet_argv(self):
8888 "Return argv array that should be used to invoke bitcoin-wallet"
8989 return self ._argv (self .paths .bitcoinwallet )
9090
91+ def chainstate_argv (self ):
92+ "Return argv array that should be used to invoke bitcoin-chainstate"
93+ return self ._argv (self .paths .bitcoinchainstate )
94+
9195 def _argv (self , bin_path ):
9296 """Return argv array that should be used to invoke the command.
9397 Normally this will return binary paths directly from the paths object,
@@ -291,6 +295,7 @@ def get_binary_paths(self):
291295 "bitcoind" : ("bitcoind" , "BITCOIND" ),
292296 "bitcoin-cli" : ("bitcoincli" , "BITCOINCLI" ),
293297 "bitcoin-util" : ("bitcoinutil" , "BITCOINUTIL" ),
298+ "bitcoin-chainstate" : ("bitcoinchainstate" , "BITCOINCHAINSTATE" ),
294299 "bitcoin-wallet" : ("bitcoinwallet" , "BITCOINWALLET" ),
295300 }
296301 for binary , [attribute_name , env_variable_name ] in binaries .items ():
@@ -1022,6 +1027,11 @@ def skip_if_no_bitcoin_util(self):
10221027 if not self .is_bitcoin_util_compiled ():
10231028 raise SkipTest ("bitcoin-util has not been compiled" )
10241029
1030+ def skip_if_no_bitcoin_chainstate (self ):
1031+ """Skip the running test if bitcoin-chainstate has not been compiled."""
1032+ if not self .is_bitcoin_chainstate_compiled ():
1033+ raise SkipTest ("bitcoin-chainstate has not been compiled" )
1034+
10251035 def skip_if_no_cli (self ):
10261036 """Skip the running test if bitcoin-cli has not been compiled."""
10271037 if not self .is_cli_compiled ():
@@ -1073,6 +1083,10 @@ def is_bitcoin_util_compiled(self):
10731083 """Checks whether bitcoin-util was compiled."""
10741084 return self .config ["components" ].getboolean ("ENABLE_BITCOIN_UTIL" )
10751085
1086+ def is_bitcoin_chainstate_compiled (self ):
1087+ """Checks whether bitcoin-chainstate was compiled."""
1088+ return self .config ["components" ].getboolean ("ENABLE_BITCOIN_CHAINSTATE" )
1089+
10761090 def is_zmq_compiled (self ):
10771091 """Checks whether the zmq module was compiled."""
10781092 return self .config ["components" ].getboolean ("ENABLE_ZMQ" )
0 commit comments