You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.
I have also found myself working around this in my code:
// If we received an array of exactly one block header..if(Array.isArray(data)&&data.length===1){// Store the block hash and height.awaitthis.setBlock(data[0].height,Buffer.from(data[0].hex,'hex'));}// ..if we received a single block header..else{// Store the block hash and height.awaitthis.setBlock(data.height,Buffer.from(data.hex,'hex'));}
The initial response and notification differ,
The inital response looks something like this
While a notification looks something like this
This is not clear in the documentation.
Electron Cash handles this by "rewriting" the response
https://github.com/Electron-Cash/Electron-Cash/blob/master/lib/network.py#L875
The text was updated successfully, but these errors were encountered: