ChainSafe / chainbridge-celo

GNU Lesser General Public License v3.0
3 stars 2 forks source link

Error on parsing CELO blocks #96

Open P1sar opened 3 years ago

P1sar commented 3 years ago

Having issues running locally from time to time with random block.

{"level":"trace","src":1,"nonce":1,"status":1,"time":"2021-02-16T08:15:20-05:00","message":"Ignoring event"} {"level":"info","source":1,"dest":1,"nonce":1,"tx":"0x64a29e15725ddf871e1bc76137ae7c6572596f8465262517ab49435cc2714ecc","time":"2021-02-16T08:15:20-05:00","message":"Submitted proposal execution"} {"level":"error","block":"612","error":"math/big: cannot unmarshal \"\\\"0x01\\\"\" into a *big.Int","time":"2021-02-16T08:15:40-05:00","message":"Failed to get events for block"} {"level":"error","block":"612","error":"math/big: cannot unmarshal \"\\\"0x01\\\"\" into a *big.Int","time":"2021-02-16T08:15:40-05:00","message":"Failed to get events for block"} {"level":"error","block":"612","error":"math/big: cannot unmarshal \"\\\"0x01\\\"\" into a *big.Int","time":"2021-02-16T08:15:40-05:00","message":"Failed to get events for block"} {"level":"error","block":"612","error":"math/big: cannot unmarshal \"\\\"0x01\\\"\" into a *big.Int","time":"2021-02-16T08:15:40-05:00","message":"Failed to get events for block"} {"level":"error","block":"612","error":"math/big: cannot unmarshal \"\\\"0x01\\\"\" into a *big.Int","time":"2021-02-16T08:15:40-05:00","message":"Failed to get events for block"} {"level":"error","time":"2021-02-16T08:15:40-05:00","message":"Polling failed, retries exceeded"} {"level":"error","error":"listener block polling failed","time":"2021-02-16T08:15:40-05:00","message":"failed to listen and serve"} {"level":"error","error":"listener block polling failed","time":"2021-02-16T08:15:40-05:00","message":"Start failed"}

Expected Behavior

Chainbridge should listen to all blocks with no errors

Current Behavior

On some random block Chainbridge panics with error above.

Possible Solution

I believe that problem is with CELO chain or CELO library since error is happening in celoClient.BlockByNumber

Steps to Reproduce (for bugs)

  1. Start docker-cmopose-e2e.yml
  2. start chainbridge chainbridge-celo --config ./cfg/config-celo-int-tst.json --testkey alice --fresh --leveldb ./lvld
  3. wait some time if error is not happening, recreate nodes. (stop containers, remove them and go to p1)

Versions

ChainBridge commit (or docker tag): chainbridge-solidity version: chainbridge-substrate version: Go version:

waymobetta commented 3 years ago

Also discovered this bug randomly but when using a different node startup script: