Giter VIP home page Giter VIP logo

Comments (6)

lanhaoxiang avatar lanhaoxiang commented on June 10, 2024

Some notice for using es plugin:

  1. With elastic search plugin, you don't have to use --track-account params
  2. If you want track only one account's full history, then you don't need elastic search plugin
  3. Elastic search plugin is used to track all account history, very useful for block explorer

For you case:

  1. Make sure you have installed elastic search properly
  2. Make sure witness_node has sync to latest status by checking witness.log, only after that, you could have your wallet started, and use all apis

You can post your witness.log here for more details

from gxb-core.

oggy95 avatar oggy95 commented on June 10, 2024

Oh, understand.
Witness node is fully synced:

2020-02-28T14:18:33 th_a:invoke handle_block handle_block ] Got block: #28081036 time: 2020-02-28T14:18:33 transaction(s): 0 latency: 296 ms from: gbac-gxc irreversible: 28081018 (-18) application.cpp:508
2020-02-28T14:18:36 th_a:invoke handle_block handle_block ] Got block: #28081037 time: 2020-02-28T14:18:36 transaction(s): 0 latency: 347 ms from: chainclub-bp irreversible: 28081018 (-19) application.cpp:508
2020-02-28T14:18:39 th_a:invoke handle_block handle_block ] Got block: #28081038 time: 2020-02-28T14:18:39 transaction(s): 0 latency: 143 ms from: gxbean irreversible: 28081018 (-20) application.cpp:508
2020-02-28T14:18:42 th_a:invoke handle_block handle_block ] Got block: #28081039 time: 2020-02-28T14:18:42 transaction(s): 0 latency: 313 ms from: lendchain irreversible: 28081018 (-21) application.cpp:508
2020-02-28T14:18:45 th_a:invoke handle_block handle_block ] Got block: #28081040 time: 2020-02-28T14:18:45 transaction(s): 0 latency: 323 ms from: gxcpacific irreversible: 28081018 (-22) application.cpp:508
2020-02-28T14:18:48 th_a:invoke handle_block handle_block ] Got block: #28081041 time: 2020-02-28T14:18:48 transaction(s): 0 latency: 312 ms from: lucia-committee irreversible: 28081020 (-21) application.cpp:508
2020-02-28T14:18:51 th_a:invoke handle_block handle_block ] Got block: #28081042 time: 2020-02-28T14:18:51 transaction(s): 0 latency: 783 ms from: damo-witness irreversible: 28081020 (-22) application.cpp:508
2020-02-28T14:18:54 th_a:invoke handle_block handle_block ] Got block: #28081043 time: 2020-02-28T14:18:54 transaction(s): 0 latency: 303 ms from: gxc-prophet irreversible: 28081020 (-23) application.cpp:508
2020-02-28T14:18:57 th_a:invoke handle_block handle_block ] Got block: #28081044 time: 2020-02-28T14:18:57 transaction(s): 0 latency: 375 ms from: bigone-pool irreversible: 28081020 (-24) application.cpp:508
2020-02-28T14:19:00 th_a:invoke handle_block handle_block ] Got block: #28081045 time: 2020-02-28T14:19:00 transaction(s): 0 latency: 307 ms from: bepal irreversible: 28081020 (-25) application.cpp:508
2020-02-28T14:19:03 th_a:invoke handle_block handle_block ] Got block: #28081046 time: 2020-02-28T14:19:03 transaction(s): 0 latency: 269 ms from: certik-gxc irreversible: 28081020 (-26) application.cpp:508
2020-02-28T14:19:06 th_a:invoke handle_block handle_block ] Got block: #28081047 time: 2020-02-28T14:19:06 transaction(s): 0 latency: 364 ms from: gxcmoon irreversible: 28081022 (-25) application.cpp:508
2020-02-28T14:19:09 th_a:invoke handle_block handle_block ] Got block: #28081048 time: 2020-02-28T14:19:09 transaction(s): 0 latency: 297 ms from: xinlai-bp irreversible: 28081033 (-15) application.cpp:508

Maybe I should restart node without ES plugin?

from gxb-core.

lanhaoxiang avatar lanhaoxiang commented on June 10, 2024

Yes, but remember to remove --resync-blockchain since it will cause fully re sync

from gxb-core.

RootkitKiller avatar RootkitKiller commented on June 10, 2024

You do not need to start the ES plugin. You can try the following command:

nohup ./programs/witness_node/witness_node --data-dir=/data --rpc-endpoint=0.0.0.0:8090 --partial-operations=true --p2p-endpoint=0.0.0.0:6789 --data-transaction-lifetime=1 --track-account=""ID_ACCOUNT"" _max_ops_per_account=20000 --log-file  >> witness.out 2>&1 &

And from now on, the track account's new transaction will be saved , and then use get_account_history to get the account history

from gxb-core.

oggy95 avatar oggy95 commented on June 10, 2024

@lanhaoxiang @RootkitKiller ok, I've got. I will wait when the node is fully started and give a status of queries.

from gxb-core.

oggy95 avatar oggy95 commented on June 10, 2024

All good! Close the issue.

from gxb-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.