everFinance / goar

Arweave http client and wallet implemented in go, Arweave SDK
Apache License 2.0
142 stars 45 forks source link

Suddenly getting "get block hash list failed" errors #58

Closed scottroot closed 1 year ago

scottroot commented 1 year ago

I am using goar as well as arsyncer. Arsyncer has always worked just fine both locally and in my hosted environment, and goar has been working fine locally just fine as well. Starting sometime in the past few days I'm suddenly getting an error: pNode.GetBlockHashList() module=syncer err="get block hash list failed" I'm getting this when running Arsyncer, or Goar, and both locally and in cloud. I created fresh new Ubuntu 22.04 instances to test it on also and tried that with versions of go 1.15 through 1.20.

I'm opening this ticket to find out if this is somehow just isolated to my code or if something has changed with the way blocks are pulled from peers.

scottroot commented 1 year ago

The issue was related to the number of blocks that could be requested. Lowering the limit in Arsyncer blocks.go by adjusting the endHeight prevented the errors from Goar and it worked again.