EOSIO / eos

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

GetTransaction trx is null #3887

Closed igorls closed 6 years ago

igorls commented 6 years ago

After calling cleos get transaction on a valid hash (extracted from get block N), the output always give

"trx": null,
"block_time": "2000-01-01T00:00:00.000",
"block_num": 0,

cleos version client = 1a27ee3a nodeos = 438824506

Plugins

plugin = eosio::chain_api_plugin
plugin = eosio::history_api_plugin
plugin = eosio::history_plugin

Same output is given using eosjs v14.1.0

Duffyxx commented 6 years ago

I get the same problem, and I can't get any print information after I push an action.

OuterSpaceTears commented 6 years ago

When I used another colleague's computer, there was no problem.

cookedsteak commented 6 years ago

Here's the response from Kevin Heifner -- "You have to indicate via filter-on what to capture. The default is nothing." You can see more info in the config file

# Track actions which match receiver:action:actor. Actor may be blank to include all. Receiver and Action may not be blank. (eosio::history_plugin) # filter-on =

So you can set --filter-on=* when starting nodeos, but it's not recommended.

str commented 6 years ago

OK, so the node needs to have the filter set to capture the information. Maybe nodeos should return

trx: {error: "filter not set to capture this transaction"}

Or something similar.