fix-rollup-relayer-estimate-l1-commit-calldata-size

This commit is contained in:
colinlyguo
2023-08-22 00:27:44 +08:00
parent c3b2f13fe0
commit d353128fef

View File

@@ -96,6 +96,13 @@ func (w *WrappedBlock) EstimateL1CommitCalldataSize() uint64 {
continue
}
size += uint64(len(txData.Data))
// over-estimate constant length of LegacyTx
size += 8 // nonce
size += 8 // gas
size += 32 // gas price
size += 32 // value
size += 65 // v, r, s
size += 20 // to
}
return size
}