127 | @@ -128,7 +128,7 @@ def test_segwit_bumpfee_succeeds(rbf_node, dest_address):
128 | def test_nonrbf_bumpfee_fails(peer_node, dest_address):
129 | # cannot replace a non RBF transaction (from node which did not enable RBF)
130 | not_rbfid = create_fund_sign_send(peer_node, {dest_address: 0.00090000})
131 | - assert_raises_message(JSONRPCException, "not BIP 125 replaceable", peer_node.bumpfee, not_rbfid)
132 | + assert_raises_jsonrpc(-4, "not BIP 125 replaceable", peer_node.bumpfee, not_rbfid)
Is there a plan to switch from integer literals to constants in a later PR? Seems like it would be nice to say RPC_WALLET_ERROR instead of -4.
Yes that would be nice, but is orthogonal to this change, so if you want to do that it'd indeed be a different PR.
yep, I'll put that in the todo list. I'm working on a primitives.py for bitcoin messages, datastructures and constants. Seems like a good place for the RPC error constants to live.