From d4c24263ce2e74bdde32a4a1e554acb8c77a79a7 Mon Sep 17 00:00:00 2001 From: StefanIliev545 Date: Thu, 21 Sep 2023 14:14:50 +0300 Subject: [PATCH 1/2] Adding is_transfer to the other sql init. --- go/enclave/storage/init/edgelessdb/001_init.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/go/enclave/storage/init/edgelessdb/001_init.sql b/go/enclave/storage/init/edgelessdb/001_init.sql index fb81076e49..7094f88037 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) ); From 87646d4bede1cc7d86472d439732ea5c970f1a1b Mon Sep 17 00:00:00 2001 From: StefanIliev545 Date: Thu, 21 Sep 2023 15:14:33 +0300 Subject: [PATCH 2/2] Reduced discount. --- go/enclave/gas/gas.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)