github.com/algorand/go-algorand-sdk@v1.24.0/client/v2/common/models/block_upgrade_state.go (about)

     1  package models
     2  
     3  // BlockUpgradeState fields relating to a protocol upgrade.
     4  type BlockUpgradeState struct {
     5  	// CurrentProtocol (proto) The current protocol version.
     6  	CurrentProtocol string `json:"current-protocol"`
     7  
     8  	// NextProtocol (nextproto) The next proposed protocol version.
     9  	NextProtocol string `json:"next-protocol,omitempty"`
    10  
    11  	// NextProtocolApprovals (nextyes) Number of blocks which approved the protocol
    12  	// upgrade.
    13  	NextProtocolApprovals uint64 `json:"next-protocol-approvals,omitempty"`
    14  
    15  	// NextProtocolSwitchOn (nextswitch) Round on which the protocol upgrade will take
    16  	// effect.
    17  	NextProtocolSwitchOn uint64 `json:"next-protocol-switch-on,omitempty"`
    18  
    19  	// NextProtocolVoteBefore (nextbefore) Deadline round for this protocol upgrade (No
    20  	// votes will be consider after this round).
    21  	NextProtocolVoteBefore uint64 `json:"next-protocol-vote-before,omitempty"`
    22  }