mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-26 16:25:21 +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"`
|
|
}
|