mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-27 08:45:19 +00:00
d83c43dcb4
* add block and tx endpoints * add block legacy endpoint
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"`
|
|
}
|