mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
Deneb produce blockv3 (#12708)
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
This commit is contained in:
@@ -230,3 +230,8 @@ func WeiToGwei(v Wei) Gwei {
|
||||
copied.Div(copied, gweiPerEth)
|
||||
return Gwei(copied.Uint64())
|
||||
}
|
||||
|
||||
// IsValidUint256 given a bigint checks if the value is a valid Uint256
|
||||
func IsValidUint256(bi *big.Int) bool {
|
||||
return bi.Cmp(big.NewInt(0)) >= 0 && bi.BitLen() <= 256
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user