Comments (5)
Hey @AsceticBear I think this PR fixed the issue: polkadot-evm/frontier#630 - so I'll close this one
from moonbeam-docs.
Hey @AsceticBear, so according to: https://web3js.readthedocs.io/en/v1.5.2/web3-eth-subscribe.html#subscribe-syncing
...
"data" returns Object: Fires on each incoming sync object as argument.
"changed" returns Object: Fires when the synchronisation is started with true
...
Object|Boolean - The syncing object, when started it will return true once or when finished it will return false once.
So if it returns empty is because that node is already synced, or there is no state change let's say.
When doing the same against a syncing Geth node the main difference is that the Geth node opens the port for connection, looks for peers and then starts syncing. This provides the necessary state change for it to return the following object:
true
{
syncing: true,
status: {
StartingBlock: 0,
CurrentBlock: 907507,
HighestBlock: 0,
PulledStates: 4503379,
KnownStates: 4503379
},
startingBlock: undefined,
currentBlock: undefined,
highestBlock: undefined
}
Once the Geth node is done syncing, it will return a false
object like the one shown above for Moonbeam.
from moonbeam-docs.
So if it returns empty is because that node is already synced, or there is no state change let's say.
Once the Geth node is done syncing, it will return a false object like the one shown above for Moonbeam.
If I understand correctly when we query sync status to a node that already synced, the expected output should be:
{
syncing: true,
status: false,
startingBlock: undefined,
currentBlock: undefined,
highestBlock: undefined
}
However, when I tried to query sync status, the output is hanging after print 0x44546f334c704d6d6e356e4c41727a76
. Can you get the output like the doc's show? or my test script is wrong?
from moonbeam-docs.
I have tested to set up fresh node to sync already running chain node, then query sync status, the result is empty as well. Perhaps you can try it out if you have are interested.
from moonbeam-docs.
I don't think Substrate nodes to have a initiation phase where the WS endpoint is open so eth_syncing
returns a response, and when the actual synchronization starts happening (like on Geth).
When your node is in a syncing state and it is synced it should return false
. I've opened an internal ticket as I found that we don't fully follow the behavior I got while reproducing in Geth.
I'll let you know once we have more info
from moonbeam-docs.
Related Issues (19)
- Tracing node instructions incorrectly recommend `--execution native` HOT 1
- Polkadot.js does not work with Brave Shield HOT 1
- AmsterDOT Bounty 1 - Launch a Cross-Chain Asset owned by a Smart Contract
- AmsterDOT Moonbeam Bounty 2 - Build a DApp that Uses XCM HOT 2
- Add Ankr to Endpoint Providers HOT 5
- ETH-Shanghai Hackathon Best Moonbeam Project Bounty HOT 3
- EvmError with Forge for any call to xcDOT on Moonbeam HOT 4
- [help] Is there any XC-20s Cross-Chain Transfer tutorial doc with local machine enviroment HOT 2
- {target=_blank) shown on foundry page HOT 2
- Add Getblock public and dedicated endpoints HOT 1
- Remove `eth_newPendingTransactionFilter`
- Change `--state-cache-size`
- Chopsticks docs suggestion HOT 2
- Update Full Node flags/options HOT 2
- [Feedback] Deploy Contracts with Truffle - /builders/build/eth-api/dev-env/truffle/ HOT 4
- [Feedback] Deploy Contracts with Truffle - /builders/build/eth-api/dev-env/truffle/ HOT 6
- [Feedback] Send Transactions & Deploy Contracts with Web3.js - /builders/build/eth-api/libraries/web3js/ HOT 3
- Instructions should only check one mapping HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moonbeam-docs.