EOSIO / eos

An open source smart contract platform
https://developers.eos.io/manuals/eos
MIT License
11.27k stars 3.6k forks source link

v1.3.0: Cannot find executed transaction. #5849

Closed FilipRy closed 6 years ago

FilipRy commented 6 years ago

What is my goal

Obtain information about the executed transaction

The steps I executed

I am running a single node EOS blockchain locally.

nodeos -e -p eosio --plugin eosio::chain_api_plugin --plugin eosio::history_api_plugin --contracts-console

After creating an account and pushing an action I want to obtain some information about the executed transaction, which should update some data on the ledger.

I executed the following:

cleos push action anorak update '["anorak",1,7,10]' -p anorak@active
executed transaction: 01b56d215ddeec880a9dbbd1a0660477a1069e93d7b6b74b63900c889f71f916  128 bytes  364 us
#        anorak <= anorak::update               {"account":"anorak","level":1,"healthPoints":7,"energyPoints":10}
warning: transaction executed locally, but may not be confirmed by the network yet    ] 

I see that the transaction should be part of the created block by this: 2018-09-28T13:24:45.501 thread-0 producer_plugin.cpp:1419 produce_block ] Produced block 000000c33e4c8aa5... #195 @ 2018-09-28T13:24:45.500 signed by eosio [trxs: 1, lib: 194, confirmed: 0]

What do I get

I executed the following command to obtain some information about the transaction, but I got:

cleos get transaction 01b56d215ddeec880a9dbbd1a0660477a1069e93d7b6b74b63900c889f71f916
Error 3040011: The transaction can not be found

What do I expect

The transaction's block number, as well as number of last_irreversible_block. So that I can conclude if the transaction has been confirmed or not.

FilipRy commented 6 years ago

Ok, I can obtain the transaction information after adding the block number option.

cleos get transaction 01b56d215ddeec880a9dbbd1a0660477a1069e93d7b6b74b63900c889f71f916
-b {block_num}