pete001 / eos-mainnet

Ansible repo for setting up an EOS RPC API node and syncing to the mainnet
https://eosnode.tools/automation
MIT License
47 stars 12 forks source link

History plugin #15

Closed p-fedyukovich closed 5 years ago

p-fedyukovich commented 5 years ago

Hi, Pete After replay I can not fetch historical data, API gives response no data found Could you explain how to enable history plugin? Does it need enabled plugin before replay?

pete001 commented 5 years ago

Hey there,

Yes we run this repo with history disabled as it requires too much machine resource.

If you want to enable, simply add the following to the config:

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

And you can choose what to index with filter-on = ...

p-fedyukovich commented 5 years ago

Hi again, Thank you for the answer. Passing this configuration has enabled historical actions, but transactions can not be found "what": "The transaction can not be found",

pete001 commented 5 years ago

Once you enable it, it will only index from that point forward.

If you want all the retrospective history data, you will need to replay.

p-fedyukovich commented 5 years ago

It has been replayed with enabled plugin.