Deduplicate some block-to-JSON code.

Deduplicate some block-to-JSON code.

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.

情報元 - Deduplicate some block-to-JSON code. · bitcoin/[email protected] · GitHub

Deduplicate some block-to-JSON code. · bitcoin/bitcoin@fa2c521 · GitHub
スポンサーリンク

シェアする

フォローする

スポンサーリンク

トップへ戻る