mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 13:46:43 +00:00
params: add BigInt to TerminalTotalDifficulty
This commit is contained in:
parent
f79354d556
commit
8725dece93
1 changed files with 4 additions and 1 deletions
|
|
@ -36,7 +36,6 @@ func (v *ChainID) Validate(cfg *Config2) error {
|
|||
if b.Sign() <= 0 {
|
||||
return fmt.Errorf("invalid chainID value %v", b)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
@ -59,6 +58,10 @@ func (v *TerminalTotalDifficulty) UnmarshalText(input []byte) error {
|
|||
return (*big.Int)(v).UnmarshalText(input)
|
||||
}
|
||||
|
||||
func (v *TerminalTotalDifficulty) BigInt() *big.Int {
|
||||
return (*big.Int)(v)
|
||||
}
|
||||
|
||||
func (v *TerminalTotalDifficulty) Validate(cfg *Config2) error {
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue