I need this RPC to write tests and investigate test failures. It will probably be useful as well to help users troubleshoot proofs that they generated.
Depends on D9525 for Proof::fromHex
Differential D9526
[avalanche] add a decodeavalancheproof RPC PiRK on May 14 2021, 09:47. Authored by
Details
I need this RPC to write tests and investigate test failures. It will probably be useful as well to help users troubleshoot proofs that they generated. Depends on D9525 for Proof::fromHex src/bitcoin-cli help decodeavalancheproof src/bitcoin-cli decodeavalancheproof "0b000000000000000c0000000000000021030b4c866585dd868a9d62348a9cd008d6a312937048fff31670e7e920cfc7a7440105c5f72f5d6da3085583e75ee79340eb4eff208c89988e7ed0efb30b87298fa30000000000f2052a0100000003000000210227d85ba011276cf25b51df6a188b75e604b38770a462b2d0e9fb2fc839ef5d3faf07f001dd38e9b4a43d07d5d449cc0f7d2888d96b82962b3ce516d1083c0e031773487fc3c4f2e38acd1db9741321b91a79b82d1c2cfd47793261e4ba003cf5" test/functional/test_runner.py abc_rpc_ava*
Diff Detail
Event Timeline
Comment Actions g_avalanche is already initialized when calling a RPC command Comment Actions fix wrong proofid Apparently, ToHex(proof.getId()) does not do what I expect it to do. Use proof.getId().toString() instead. Fix the test accordingly. Also, use assert_equal in the tests. Comment Actions use ToString for other uint256 (txid) for consistency. Use a const reference for 2 variables in the loop. |