Merge #21114: Deduplicate some block-to-JSON code

Merge #21114: Deduplicate some block-to-JSON code

fa2c52111544b0de93ac1002f5395bceeb8fea0e Deduplicate some block-to-JSON code. (Daniel Kraft)

Pull request description:

  Some of the logic converting blocks and block headers to JSON for the blockchain RPC methods (`getblock`, `getlockheader`) was duplicated. Instead of that, the `blockToJSON` RPC method now calls `blockheaderToJSON` first, and then fills in the missing, block-specific bits explicitly.

ACKs for top commit:
  laanwj:
    Code review ACK fa2c52111544b0de93ac1002f5395bceeb8fea0e

Tree-SHA512: 1b9b269e251d9c8c1056f253cfc2a795170d609f4c26ecc85b1ff9cdd567095a673dd89564e0d587b32dfc152ea01b2682169b018f2c9c3004c511a9998d772e

情報元 - Merge #21114: Deduplicate some block-to-JSON code · bitcoin/[email protected] · GitHub

Merge #21114: Deduplicate some block-to-JSON code · bitcoin/bitcoin@3c514cf · GitHub
スポンサーリンク

シェアする

フォローする

スポンサーリンク

トップへ戻る