Constructor macro for block-headerp structures.
Syntax:
(make-block-header [:parent-hash <parent-hash>]
[:ommers-hash <ommers-hash>]
[:beneficiary <beneficiary>]
[:state-root <state-root>]
[:transactions-root <transactions-root>]
[:receipts-root <receipts-root>]
[:logs-bloom <logs-bloom>]
[:difficulty <difficulty>]
[:number <number>]
[:gas-limit <gas-limit>]
[:gas-used <gas-used>]
[:timestamp <timestamp>]
[:extra-data <extra-data>]
[:mix-hash <mix-hash>]
[:nonce <nonce>])
This is our preferred way to construct block-headerp structures. It simply conses together a structure with the specified fields.
This macro generates a new block-headerp structure from scratch. See also change-block-header, which can "change" an existing structure, instead.
The block-headerp structures we create here are just constructed with ordinary cons. If you want to create honsed structures, see make-honsed-block-header instead.
This is an ordinary
Macro:
(defmacro make-block-header (&rest args) (std::make-aggregate 'block-header args '((:parent-hash) (:ommers-hash) (:beneficiary) (:state-root) (:transactions-root) (:receipts-root) (:logs-bloom) (:difficulty) (:number) (:gas-limit) (:gas-used) (:timestamp) (:extra-data) (:mix-hash) (:nonce)) 'make-block-header nil))