Giter Club home page Giter Club logo

Comments (6)

fletcher142 avatar fletcher142 commented on August 15, 2024

make sure the way you instantiate BinanceDexApiNodeClientImpl is correct
it should be like this
BinanceDexApiNodeClient binanceDexNodeApi = BinanceDexApiClientFactory.newInstance().newNodeRpcClient(BinanceDexEnvironment.TEST_NET.getNodeUrl(),BinanceDexEnvironment.TEST_NET.getHrp()); which you can find it in NodeClientExample. And put BinanceDexEnvironment.PROD instead if u need perform in prod env.

from java-sdk.

abyssal0 avatar abyssal0 commented on August 15, 2024

This is what I do, but occasionally there are timeout issues, is it because local synchronization is slower than network nodes?Can local blocks be slower than the network cause this problem?Or something...

from java-sdk.

fletcher142 avatar fletcher142 commented on August 15, 2024

This is what I do, but occasionally there are timeout issues, is it because local synchronization is slower than network nodes?Can local blocks be slower than the network cause this problem?Or something...

So you are trying connect to the full node which is running in your local env.? Then you should make sure this node is running normally, and whether the port you filled in is correct.27147 is the port being exposed as the rpc service of full node by default.

This is tutorial doc. for running a full node.
https://docs.binance.org/fullnode.html

from java-sdk.

abyssal0 avatar abyssal0 commented on August 15, 2024

Full node is correct.Data can be normally obtained, and transactions can be normally pushed to the blockchain.It's just that sometimes there's a return timeout and you can't get the results.I suspect the slow synchronization of the nodes.Sometimes nodes are 1000-2000 slower than blockchain explorer in querying blocknumber

from java-sdk.

abyssal0 avatar abyssal0 commented on August 15, 2024

What causes slow synchronization of nodes?In what ways can you speed up node synchronization?

from java-sdk.

unclezoro avatar unclezoro commented on August 15, 2024

What causes slow synchronization of nodes?In what ways can you speed up node synchronization?

Hi, Are you building your node?

  1. First please check your node do really lags. You can run bnbcli status to different nodes(your nodes and data seed nodes), check the height diff.
  2. If so, can you past any logs of your running node?

from java-sdk.

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.