diff --git a/go/enclave/gas/gas.go b/go/enclave/gas/gas.go index d6256eb1e0..cebee94eba 100644 --- a/go/enclave/gas/gas.go +++ b/go/enclave/gas/gas.go @@ -34,7 +34,7 @@ func (gp *ObscuroGasPool) ForTransaction(tx *types.Transaction) (*gethcore.GasPo // CalculateL1GasUsed - calculates the gas cost of having a transaction on the l1. func CalculateL1GasUsed(data []byte, overhead *big.Int) *big.Int { reducedTxSize := uint64(len(data)) - reducedTxSize = (reducedTxSize * 75) / 100 + reducedTxSize = (reducedTxSize * 90) / 100 reducedTxSize = reducedTxSize * params.TxDataNonZeroGasEIP2028 l1Gas := new(big.Int).SetUint64(reducedTxSize) diff --git a/go/enclave/storage/init/edgelessdb/001_init.sql b/go/enclave/storage/init/edgelessdb/001_init.sql index c09b16d66c..e49a59e8f7 100644 --- a/go/enclave/storage/init/edgelessdb/001_init.sql +++ b/go/enclave/storage/init/edgelessdb/001_init.sql @@ -47,6 +47,7 @@ create table if not exists obsdb.l1_msg id INTEGER AUTO_INCREMENT, message varbinary(1024) NOT NULL, block binary(32) NOT NULL, + is_transfer boolean NOT NULL, INDEX (block), primary key (id) );