Deneb produce blockv3 (#12708)

Co-authored-by: Radosław Kapka <rkapka@wp.pl>
This commit is contained in:
james-prysm
2023-09-01 05:51:27 -05:00
committed by GitHub
parent 3a8be9fcf8
commit 9a7393a2e3
34 changed files with 8182 additions and 2520 deletions

View File

@@ -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
}