mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
* Limit state sync by gas * Added logging for state-sync total gas usage * Added number of event-records in log * Minor Changes * Minor Fix * Adding individual gasUsed * Minor Fix * it works * fix tests * log wiggle and delay with block number * log delays as numbers * linters * fix tests * restore linters for the project * fix linters * fix * fix * fix * linters * generation * fix tests * remove heimdall wrapper response * linters * remove possible collisions * remove possible collisions * remove possible collisions * tests for unique address generation * generalize set * bor miner tests got restored * fixes after CR * final step and mining test * fix * fix e2e * more tests for Heimdall requests * fix linters Co-authored-by: Ferran <ferranbt@protonmail.com> Co-authored-by: Shivam Sharma <shivam691999@gmail.com>
20 lines
654 B
Go
20 lines
654 B
Go
package span
|
|
|
|
import (
|
|
"github.com/ethereum/go-ethereum/consensus/bor/valset"
|
|
)
|
|
|
|
// Span Bor represents a current bor span
|
|
type Span struct {
|
|
ID uint64 `json:"span_id" yaml:"span_id"`
|
|
StartBlock uint64 `json:"start_block" yaml:"start_block"`
|
|
EndBlock uint64 `json:"end_block" yaml:"end_block"`
|
|
}
|
|
|
|
// HeimdallSpan represents span from heimdall APIs
|
|
type HeimdallSpan struct {
|
|
Span
|
|
ValidatorSet valset.ValidatorSet `json:"validator_set" yaml:"validator_set"`
|
|
SelectedProducers []valset.Validator `json:"selected_producers" yaml:"selected_producers"`
|
|
ChainID string `json:"bor_chain_id" yaml:"bor_chain_id"`
|
|
}
|