File tree Expand file tree Collapse file tree 3 files changed +0
-13
lines changed Expand file tree Collapse file tree 3 files changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -107,8 +107,4 @@ const
107
107
HISTORY_STORAGE_ADDRESS * = address " 0x0000F90827F1C53a10cb7A02335B175320002935"
108
108
WITHDRAWAL_REQUEST_PREDEPLOY_ADDRESS * = address " 0x00000961Ef480Eb55e80D19ad83579A64c007002"
109
109
CONSOLIDATION_REQUEST_PREDEPLOY_ADDRESS * = address " 0x0000BBdDc7CE488642fb579F8B00f3a590007251"
110
-
111
- MAX_BLOCK_SIZE * = 10_485_760 # 10 MiB
112
- SAFETY_MARGIN * = 2_097_152 # 2 MiB
113
- MAX_RLP_BLOCK_SIZE * = MAX_BLOCK_SIZE - SAFETY_MARGIN
114
110
# End
Original file line number Diff line number Diff line change 12
12
13
13
import
14
14
../../ common/ common,
15
- ../../ constants,
16
15
../../ utils/ utils,
17
16
../../ constants,
18
17
../../ db/ ledger,
@@ -119,10 +118,6 @@ proc procBlkPreamble(
119
118
if blk.transactions.calcTxRoot != header.txRoot:
120
119
return err (" Mismatched txRoot" )
121
120
122
- if com.isOsakaOrLater (header.timestamp):
123
- if rlp.getEncodedLength (blk) > MAX_RLP_BLOCK_SIZE :
124
- return err (" Post-Osaka block exceeded MAX_RLP_BLOCK_SIZE" )
125
-
126
121
if com.isPragueOrLater (header.timestamp):
127
122
if header.requestsHash.isNone:
128
123
return err (" Post-Prague block header must have requestsHash" )
Original file line number Diff line number Diff line change @@ -160,13 +160,9 @@ proc assembleBlock*(
160
160
blobsBundle = BlobsBundle (
161
161
wrapperVersion: getWrapperVersion (com, blk.header.timestamp)
162
162
)
163
- currentRlpSize = rlp.getEncodedLength (blk.header) + rlp.getEncodedLength (blk.withdrawals)
164
163
165
164
for item in pst.packedTxs:
166
165
let tx = item.pooledTx
167
- if currentRlpSize > MAX_RLP_BLOCK_SIZE - 10 :
168
- break
169
- currentRlpSize = currentRlpSize + rlp.getEncodedLength (tx.tx)
170
166
blk.txs.add tx.tx
171
167
if tx.blobsBundle != nil :
172
168
doAssert (tx.blobsBundle.wrapperVersion == blobsBundle.wrapperVersion)
You can’t perform that action at this time.
0 commit comments