elements icon indicating copy to clipboard operation
elements copied to clipboard

Peg related RPC calls should error if there is no parent chain set

Open wintercooled opened this issue 3 years ago • 0 comments

Currently (tested in 0.18.1.9 and 0.18.11):

If I set chain=whatever, con_has_parent_chain=0 or parentgenesisblockhash=Null in elements.conf I can still call getpeginaddress from a connected client without error and get a mainchain_address and claim_script returned.

I would have expected any peg related RPC calls to error if the parent chain is nothing.

wintercooled avatar Apr 08 '21 09:04 wintercooled