Skip to content

Tx fee calculation appears to be off #36

@willyko

Description

@willyko
04:44:22.194 [Syscoin to Eth client] INFO  EthWrapper - setting new gas price to 122000000000
04:44:28.330 [Syscoin to Eth client] INFO  EthWrapper - About to send superblock 534c68ca1a14662c0e9d19559026594291453870138999f21d5c2bf4d4012d35 to the bridge.
04:44:28.954 [Syscoin to Eth client] INFO  EthWrapper - Sent superblock 534c68ca1a14662c0e9d19559026594291453870138999f21d5c2bf4d4012d35, process counter 0
04:44:28.957 [pool-1-thread-5] INFO  EthWrapper - proposeSuperblock EXCEPTION:
java.lang.RuntimeException: Error processing transaction request: tx fee (1.22 ether) exceeds the configured cap (1.00 ether)
	at org.web3j.tx.TransactionManager.processResponse(TransactionManager.java:110)
	at org.web3j.tx.TransactionManager.executeTransaction(TransactionManager.java:77)
	at org.web3j.tx.ManagedTransaction.send(ManagedTransaction.java:114)
	at org.web3j.tx.Contract.executeTransaction(Contract.java:362)
	at org.web3j.tx.Contract.executeTransaction(Contract.java:345)
	at org.web3j.tx.Contract.executeTransaction(Contract.java:339)
	at org.web3j.tx.Contract.executeTransaction(Contract.java:334)
	at org.web3j.tx.Contract.lambda$executeRemoteCallTransaction$3(Contract.java:401)
	at org.web3j.protocol.core.RemoteCall.send(RemoteCall.java:42)
	at org.web3j.utils.Async.lambda$run$1(Async.java:38)
	at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1736)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)

From the log above, we can see the fee set to 122 gwei, and we know that propose superblock should only be about 300k gas, so the fee should be around 0.03 ETH rather than 1.22 ETH as shown in log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions