AcalaNetwork / chopsticks

Create parallel reality of your Substrate network.
Apache License 2.0
138 stars 84 forks source link

add execute block call in follow-chain #513

Closed qiweiii closed 11 months ago

qiweiii commented 1 year ago

closes: #70

qiweiii commented 1 year ago

An error I get is

 [11:05:18.948] ERROR (follow-chain/49419): Error when processing new head
    err: {
      "type": "Error",
      "message": "wasm `unreachable` instruction executed",
      "stack":
          Error: wasm `unreachable` instruction executed
              at Object.callback (/Users/qiweiyang/GitHub/chopsticks/packages/chopsticks/src/plugins/follow-chain/index.ts:134:23)
    }

Any clue how I should debug this? I can confirm the wasm I used is the one with try-runtime feature

xlc commented 1 year ago

it should log more information if you have LOG_LEVEL=trace.

qiweiii commented 1 year ago

seems the log is the same

[17:27:12.719] TRACE (executor/55366): taskResponse
    response: {
      "Error": "wasm `unreachable` instruction executed"
    }
ermalkaleci commented 1 year ago

what wasm are you using? looks like something wrong with wasm file

qiweiii commented 1 year ago

what wasm are you using? looks like something wrong with wasm file

I am using wasm build from this

https://github.com/AcalaNetwork/Acala/blob/7198bb16bc6078cd574a2545aa0306161e2d196a/Makefile#L138

ermalkaleci commented 1 year ago

Remove true from setupContext

ermalkaleci commented 1 year ago

there's another problem as well. setupContext will start to latest and then we set head to finalized. So we need to set the correct block number in order to make wasm-override correct

ermalkaleci commented 11 months ago

this can't be implemented on follow-mode