xssnick / tonutils-go

TON SDK Library in pure Golang for interacting with The Open Network ecosystem using native protocols, such as ADNL, RLDP and etc.
Apache License 2.0
464 stars 95 forks source link

failed to check proof: should have 2 roots #175

Closed akme closed 5 months ago

akme commented 5 months ago

Some litenodes were updated in testnet yesterday and now we get this error on GetBlockShardsInfo(): v.1.8.9

failed to check proof: should have 2 roots

v1.9.0 return timeout

Could you please take a look?

akme commented 5 months ago

UPD: v1.9.0 error

failed to parse message: failed to parse field Data of adnl.MessageAnswer, err: failed to parse struct from bytes for interface {}, err: failed to parse field Proof of ton.AllShardsInfo, err: incorrect cells len in field []*cell.Cell
xssnick commented 5 months ago

Hi, new liteserver version is not sends shard state proof in GetBlockShardsInfo in second root of proof anymore.

For now you can import lib like that go get -u github.com/xssnick/tonutils-go@41495ebfc0d81266892021ed9ba7ba3d01766c7d, so it will work in both new testnet and old mainnet.

xssnick commented 5 months ago

Released v1.9.1

akme commented 5 months ago

Thanks! All good now!