CryptoFly.us | CRYPTOCURRENCY BITCOIN SHIRTS CLOTHING APPAREL HATS

CRYPTO NEWS

Out of gas & Exceeds block gas limit, but contract size <24KB

I’ve 2 contracts I’m trying to deploy on mainnet-fork, but I keep getting this error:

VirtualMachineError: out of gas

When I try to increase the gas limit, I get this:

ValueError: Exceeds block gas limit

When I deploy it on the Rinkeby network, I don’t get this error, same for BSC testnet. If I take the Bytecode from the deployed contract in Rinkeby I get around 23KB (<24.5KB limit), so it seems that the size should be fine right? Or does it change depending on the network?

Thanks for your help 😉

I couldn’t implement RFI and Voting in the same contract as that would make it too big, so I had to separate it into 2 contracts

Manage multiple users wallets for web wallet service

This already summaries the issue I’m currently trying to figure out to calculate the transaction fee to prevent negative balance. (testnet) I tried using createrawtransaction answered. When I tried to send all balance to an address, the txid was created successfully using createrawtransaction but when I ran the fundrawtranaction on that txid it showed error::Listen

This already summaries the issue I’m currently trying to figure out to calculate the transaction fee to prevent negative balance.

(testnet) I tried using createrawtransaction answered. When I tried to send all balance to an address, the txid was created successfully using createrawtransaction but when I ran the fundrawtranaction on that txid it showed

error code: -4 error message: Insufficient funds 

The goal is to calculate transaction fee before hand to check either sufficient balance is available of an account using sendfrom

To manage multiple users to isolate users’ balances as this.

EDIT1:

If using estimatesmartfee it is showing the fee:

bitcoin-cli -testnet estimatesmartfee 6 {   "feerate": 0.00501921,   "blocks": 6 } 

When calling sendfrom for total balance transfer:

bitcoin-cli -testnet sendfrom <account> <address> <amount> error code: -4 error message: Error: This transaction requires a transaction fee of at least 0.00067257 

Is there a way to get 0.00067257 the fee part before send the transaction amount and set it so that account balance won’t go negative for multi accounts wallet.

Edit 2:

I found out that accounts are deprecated.

And multi wallet creation/load/unload on runtime is underway to 0.17.0

So what would be the best approach to handle multiple users bitcoins in isolation on a full node to prevent negative balance.

Crypto Hats, Crypto Shirts, Crypto Socks, Crypto Clothing

Out of gas & Exceeds block gas limit, but contract size <24KB

Shopping cart
There are no products in the cart!
Continue shopping
0