Changeset View
Changeset View
Standalone View
Standalone View
test/functional/wallet_listsinceblock.py
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | def test_no_blockhash(self): | ||||
"removed": [], | "removed": [], | ||||
"transactions": txs}) | "transactions": txs}) | ||||
def test_invalid_blockhash(self): | def test_invalid_blockhash(self): | ||||
assert_raises_rpc_error(-5, "Block not found", self.nodes[0].listsinceblock, | assert_raises_rpc_error(-5, "Block not found", self.nodes[0].listsinceblock, | ||||
"42759cde25462784395a337460bde75f58e73d3f08bd31fdc3507cbac856a2c4") | "42759cde25462784395a337460bde75f58e73d3f08bd31fdc3507cbac856a2c4") | ||||
assert_raises_rpc_error(-5, "Block not found", self.nodes[0].listsinceblock, | assert_raises_rpc_error(-5, "Block not found", self.nodes[0].listsinceblock, | ||||
"0000000000000000000000000000000000000000000000000000000000000000") | "0000000000000000000000000000000000000000000000000000000000000000") | ||||
assert_raises_rpc_error(-5, "Block not found", self.nodes[0].listsinceblock, | assert_raises_rpc_error(-8, "blockhash must be of length 64 (not 11, for 'invalid-hex')", self.nodes[0].listsinceblock, | ||||
"invalid-hex") | "invalid-hex") | ||||
assert_raises_rpc_error(-8, "blockhash must be hexadecimal string (not 'Z000000000000000000000000000000000000000000000000000000000000000')", self.nodes[0].listsinceblock, | |||||
"Z000000000000000000000000000000000000000000000000000000000000000") | |||||
def test_reorg(self): | def test_reorg(self): | ||||
''' | ''' | ||||
`listsinceblock` did not behave correctly when handed a block that was | `listsinceblock` did not behave correctly when handed a block that was | ||||
no longer in the main chain: | no longer in the main chain: | ||||
ab0 | ab0 | ||||
/ \ | / \ | ||||
▲ Show 20 Lines • Show All 223 Lines • Show Last 20 Lines |