Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

evm-bully fails on Rinkeby testnet, block 55, tx 0 #122

Closed
frankbraun opened this issue Jun 3, 2021 · 5 comments
Closed

evm-bully fails on Rinkeby testnet, block 55, tx 0 #122

frankbraun opened this issue Jun 3, 2021 · 5 comments
Assignees
Labels
C-bug Category: Something isn't working. P-critical Priority: critical

Comments

@frankbraun
Copy link
Contributor

frankbraun commented Jun 3, 2021

Transaction Id 361165UkrpXsBPxFuvqG1UA97camS1CZYZc6mb7KjPSE
evm-bully: error: failure:
{
  "ActionError": {
    "index": 0,
    "kind": {
      "FunctionCallError": {
        "ExecutionError": "Smart contract panicked: ERR_OUT_OF_FUND"
      }
    }
  }
}

See replay failing transactions on how to replay rinkeby-block-55-tx-0.tar.gz

@frankbraun frankbraun added the C-bug Category: Something isn't working. label Jun 3, 2021
@frankbraun
Copy link
Contributor Author

See also #2.

@birchmd
Copy link
Member

birchmd commented Jun 21, 2021

This one appears to be an issue with the rinkeby genesis state initialization with the bully. The failing tx is the very first one on the chain and it is a simple transfer from one address to another. The source address in that tx is 0x31b98d14007bdee637298086988a0bbd31184523, which is funded with effectively infinite ether at genesis (this can be seen on etherscan).

In the Aurora state provided to repro the failure, that address has a balance of only 2 Wei, which is incorrect based on the genesis state. This is why I think the problem was with the initialization. Assigning this one back to @frankbraun to investigate.

@frankbraun
Copy link
Contributor Author

@birchmd You were right in the discussion in #30, RawU256 must be big-endian (what the EVM uses) and not little-endian (what WebAssembly uses). So the balance was encoded wrongle by the evm-bully (fixed in aurora-is-near/evm-bully@7705c27) and that caused this error.

@frankbraun
Copy link
Contributor Author

Still fails on newest HEADs of nearcore and aurora-engine (master): rinkeby-block-55-tx-0.tar.gz

But with different error message:

{
  "Failure": {
    "ActionError": {
      "index": 0,
      "kind": {
        "FunctionCallError": {
          "ExecutionError": "Smart contract panicked: Failed read storage [src/connector.rs:69:71]"
        }
      }
    }
  }
}

Ropsten and Görli now also fail with the same error message on the first transaction.

Might be related to #2.

@birchmd
Copy link
Member

birchmd commented Oct 22, 2021

This is now resolved. Rinkeby now makes it all the way to block 34300 (see https://github.com/aurora-is-near/aurora-engine/runs/3971726940?check_suite_focus=true )

@birchmd birchmd closed this as completed Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: Something isn't working. P-critical Priority: critical
Projects
None yet
Development

No branches or pull requests

3 participants