mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-30 18:25:19 +00:00
13 lines
374 B
Go
13 lines
374 B
Go
|
package v032
|
||
|
|
||
|
// Protocol is used for implementation agnostic versioning.
|
||
|
type Protocol uint64
|
||
|
|
||
|
// Consensus captures the consensus rules for processing a block in the blockchain,
|
||
|
// including all blockchain data structures and the rules of the application's
|
||
|
// state transition machine.
|
||
|
type Consensus struct {
|
||
|
Block Protocol `json:"block"`
|
||
|
App Protocol `json:"app"`
|
||
|
}
|