-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Consensus (bank hash) mismatch between master and v1.13/v1.14 (mnb) #31365
Comments
I have determined that aebc191 (#30703) introduced the breaking change:
@pgarg66 @Lichtso - Can you two please look into this further given that you were the author + reviewer on this PR. |
I think I got an idea what is going on: First of all, in the TX in question, the program However, if both occur simultaneously on the same program in the same TX as it is the case here, the function solana/runtime/src/accounts.rs Line 639 in aebc191
And it is thus the matching programdata account is not pre-loaded into the executor cache anymore here: Line 4494 in aebc191
Later, in the program runtime when the program is attempting execution it is not found in the executor cache because it was never pre-loaded: solana/programs/bpf_loader/src/lib.rs Line 184 in aebc191
Which leads to an incorrect fall through into solana/programs/bpf_loader/src/lib.rs Line 155 in aebc191
In other words, while #30703 made the problem visible, it was actually introduced earlier in #30371. PatchRemove the |
I also had a machine hit this at what I think is a different slot:
|
Can you look a little further back in your logs and see if these machines initially died on slot
|
Problem
On April 23, nodes running against master were observed to have diverged from mainnet. Nodes with various commits off of master forked off at slot
190061698
, and this hit this panic.The incorrect bank hash and associated fields that make up the bank hash look like:
whereas the correct hash produced by v1.13/v1.14 looks like:
At first glance, there is an obvious difference in some of these numbers which would point to a transaction had a different execution result between versions.
Adding some extra logging, I determined that the transaction (explorer link here) that executed differently between versions is:
Looking at the basic logs in explorer, the above transaction fully succeeded in v1.13 / v1.14. However, looking at the debug logs from executing with master via
solana-ledger-tool
, I see the following for this tx:Proposed Solution
The text was updated successfully, but these errors were encountered: