• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Aleobft
        • Aleobft-static
          • Correctness
          • Definition
            • Transitions
            • Operations
            • States
              • System-states
              • Messages
              • Validator-states
              • Certificates
              • Transactions
              • Addresses
              • Blocks
                • Block
                  • Block-fix
                  • Block-equiv
                  • Make-block
                  • Block->transactions
                  • Change-block
                    • Blockp
                  • Block-list
              • Initialization
              • Events
          • Aleobft-stake2
          • Aleobft-dynamic
          • Aleobft-stake
          • Aleobft-proposals
          • Library-extensions
        • Acre
        • Milawa
        • Smtlink
        • Abnf
        • Vwsim
        • Isar
        • Wp-gen
        • Dimacs-reader
        • Pfcs
        • Legacy-defrstobj
        • Proof-checker-array
        • Soft
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • C
        • Java
        • Taspi
        • Bitcoin
        • Riscv
        • Des
        • Ethereum
        • X86isa
        • Sha-2
        • Yul
        • Zcash
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Bigmems
        • Builtins
        • Axe
        • Execloader
        • Solidity
        • Leo
        • Paco
        • Concurrent-programs
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Block

    Change-block

    Modifying constructor for block structures.

    Syntax
    (change-block x 
                  [:transactions <transactions>]) 
    

    This is an often useful alternative to make-block.

    We construct a new block structure that is a copy of x, except that you can explicitly change some particular fields. Any fields you don't mention just keep their values from x.

    Definition

    This is an ordinary change- macro introduced by fty::defprod.

    Macro: change-block

    (defmacro change-block (x &rest args)
      (std::change-aggregate 'block
                             x args
                             '((:transactions . block->transactions))
                             'change-block
                             'nil))