mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
fix: main storage offset value (#329)
This commit is contained in:
parent
afc6067590
commit
f95255839a
1 changed files with 2 additions and 2 deletions
|
|
@ -37,9 +37,9 @@ var (
|
||||||
zero = uint256.NewInt(0)
|
zero = uint256.NewInt(0)
|
||||||
VerkleNodeWidthLog2 = 8
|
VerkleNodeWidthLog2 = 8
|
||||||
HeaderStorageOffset = uint256.NewInt(64)
|
HeaderStorageOffset = uint256.NewInt(64)
|
||||||
mainStorageOffsetLshVerkleNodeWidth = new(uint256.Int).Lsh(uint256.NewInt(256), 31-uint(VerkleNodeWidthLog2))
|
mainStorageOffsetLshVerkleNodeWidth = new(uint256.Int).Lsh(uint256.NewInt(1), 248-uint(VerkleNodeWidthLog2))
|
||||||
CodeOffset = uint256.NewInt(128)
|
CodeOffset = uint256.NewInt(128)
|
||||||
MainStorageOffset = new(uint256.Int).Lsh(uint256.NewInt(256), 31)
|
MainStorageOffset = new(uint256.Int).Lsh(uint256.NewInt(1), 248 /* 8 * 31*/)
|
||||||
VerkleNodeWidth = uint256.NewInt(256)
|
VerkleNodeWidth = uint256.NewInt(256)
|
||||||
codeStorageDelta = uint256.NewInt(0).Sub(CodeOffset, HeaderStorageOffset)
|
codeStorageDelta = uint256.NewInt(0).Sub(CodeOffset, HeaderStorageOffset)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue