koinos / koinos-mempool

The mempool microservice stores pending transactions for inclusion in blocks by the block producer.
MIT License
0 stars 1 forks source link

[BUG]: contract upload transaction stuck in the mempool #44

Closed harpagon210 closed 1 year ago

harpagon210 commented 2 years ago

Is there an existing issue for this?

Current behavior

When uploading this contract.wasm, the transaction gets stuck in the mempool with no errors showing as to why it cannot be included in a block.

When lowering the size of the wasm, I'm able to upload it so it might be related to the file size.

Expected behavior

either reject the transaction with a proper error message or include the transaction in a block

Steps to reproduce

  1. open the Koinos CLI
  2. open a wallet
  3. connect to any RPC node (i.e.: http://api.koinos.io:8080)
  4. upload this contract.wasm with upload contract.wasm

In the mempool service logs you should see something like 2021-12-08 21:15:39.989639 (mempool.Koinos) [mempool.cpp:243] <info>: Transaction added , but you won't see [mempool.cpp:257] <info>: Removing included transaction from mempool...

Environment

- OS: all

Anything else?

No response

mvandeberg commented 1 year ago

This is an old transaction. Logic for block construction and transaction inclusion has changed drastically since then and we have not experienced similar problems on Testnet 4.