Changeset View
Changeset View
Standalone View
Standalone View
test/functional/rpc_rawtransaction.py
Show First 20 Lines • Show All 560 Lines • ▼ Show 20 Lines | def run_test(self): | ||||
# and sendrawtransaction should throw | # and sendrawtransaction should throw | ||||
assert_raises_rpc_error(-26, | assert_raises_rpc_error(-26, | ||||
"absurdly-high-fee", | "absurdly-high-fee", | ||||
self.nodes[2].sendrawtransaction, | self.nodes[2].sendrawtransaction, | ||||
rawTxSigned['hex'], | rawTxSigned['hex'], | ||||
0.00001000) | 0.00001000) | ||||
# And below calls should both succeed | # And below calls should both succeed | ||||
testres = self.nodes[2].testmempoolaccept( | testres = self.nodes[2].testmempoolaccept( | ||||
rawtxs=[rawTxSigned['hex']], maxfeerate=0.00007000)[0] | rawtxs=[rawTxSigned['hex']], maxfeerate='0.00007000')[0] | ||||
assert_equal(testres['allowed'], True) | assert_equal(testres['allowed'], True) | ||||
self.nodes[2].sendrawtransaction( | self.nodes[2].sendrawtransaction( | ||||
hexstring=rawTxSigned['hex'], | hexstring=rawTxSigned['hex'], | ||||
maxfeerate=0.00007000) | maxfeerate='0.00007000') | ||||
########################################## | ########################################## | ||||
# Decoding weird scripts in transactions # | # Decoding weird scripts in transactions # | ||||
########################################## | ########################################## | ||||
self.log.info('Decode correctly-formatted but weird transactions') | self.log.info('Decode correctly-formatted but weird transactions') | ||||
tx = CTransaction() | tx = CTransaction() | ||||
# empty | # empty | ||||
Show All 20 Lines |