Skip to content

Commit

Permalink
Merge ee642f5 into merged_master (Elements PR ElementsProject#658)
Browse files Browse the repository at this point in the history
  • Loading branch information
apoelstra committed Nov 6, 2020
2 parents bd9826d + ee642f5 commit 48a923a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rpc/blockchain.cpp
Expand Up @@ -2441,6 +2441,7 @@ UniValue getsidechaininfo(const JSONRPCRequest& request)
" \"parent_chain_signblockscript_asm\": \"xxxx\", (string) If the parent chain has signed blocks, its signblockscript in ASM.\n"
" \"parent_chain_signblockscript_hex\": \"xxxx\", (string) If the parent chain has signed blocks, its signblockscript in hex.\n"
" \"parent_pegged_asset\": \"xxxx\", (boolean) If the parent chain has Confidential Assets, the asset id of the pegged asset in that chain.\n"
" \"pegin_confirmation_depth\": x.xx (numeric) The number of mainchain confirmations required for a peg-in transaction to become valid.\n"
" \"enforce_pak\": \"xxxx\", (boolean) If peg-out authorization is being enforced.\n"
"}\n"
},
Expand All @@ -2462,6 +2463,7 @@ UniValue getsidechaininfo(const JSONRPCRequest& request)
obj.pushKV("parent_blockhash", parent_blockhash.GetHex());
obj.pushKV("parent_chain_has_pow", consensus.ParentChainHasPow());
obj.pushKV("enforce_pak", Params().GetEnforcePak());
obj.pushKV("pegin_confirmation_depth", (uint64_t)consensus.pegin_min_depth);
if (!consensus.ParentChainHasPow()) {
obj.pushKV("parent_chain_signblockscript_asm", ScriptToAsmStr(consensus.parent_chain_signblockscript));
obj.pushKV("parent_chain_signblockscript_hex", HexStr(consensus.parent_chain_signblockscript));
Expand Down
1 change: 1 addition & 0 deletions test/functional/feature_fedpeg.py
Expand Up @@ -187,6 +187,7 @@ def run_test(self):
assert_equal(sidechain.decodescript(addrs["claim_script"])["type"], "witness_v0_keyhash")
txid1 = parent.sendtoaddress(addr, 24)
# 10+2 confirms required to get into mempool and confirm
assert_equal(sidechain.getsidechaininfo()["pegin_confirmation_depth"], 10)
parent.generate(1)
time.sleep(2)
proof = parent.gettxoutproof([txid1])
Expand Down

0 comments on commit 48a923a

Please sign in to comment.