Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tx fee calculation appears to be off #36

Open
willyko opened this issue Aug 19, 2020 · 0 comments
Open

Tx fee calculation appears to be off #36

willyko opened this issue Aug 19, 2020 · 0 comments

Comments

@willyko
Copy link

willyko commented Aug 19, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant