You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a few weeks I have been doing on chain testing in my application that uses offChain state api. I use services in my app that send and settle the proofs I receive from users to Mina and this services work consistently.
However, after updating on offchain state, I realized that the api was not working correctly. When I tried to update again it after the updates were done, I was getting a root mismatch error and the only way to solve it was to restart the service.
I thought the problem might be that it was not settling and tested for that. After sending the update, I waited for it to settle completely, but the problem was the same. Then I console logged the states in some places on offchain-state.js and got the following results.
19127837625513839750015801518488884205754193410383643610887852957945537699566
first check false second check false
action state 18571608787403596221185729134339335640005846451227827507499404664500316550112
merkle map 4822366981302605685996191473523237511494367078661562577361822805082477390442
map root 4822366981302605685996191473523237511494367078661562577361822805082477390442 state root 4822366981302605685996191473523237511494367078661562577361822805082477390442
first check true second check true
returning internal
Current session 2009824360
2009824360 -> 2115950408
Generating proof
Transaction sent
## I waited for update and settlement here ##
19127837625513839750015801518488884205754193410383643610887852957945537699566
first check true second check true
returning internal
map root 4822366981302605685996191473523237511494367078661562577361822805082477390442 state root 19818629034789886366259936965517333313478084681883682142698168018525779052913
Error: root mismatch
Field.assertEquals(): 4822366981302605685996191473523237511494367078661562577361822805082477390442 != 19818629034789886366259936965517333313478084681883682142698168018525779052913
For a few weeks I have been doing on chain testing in my application that uses offChain state api. I use services in my app that send and settle the proofs I receive from users to Mina and this services work consistently.
However, after updating on offchain state, I realized that the api was not working correctly. When I tried to update again it after the updates were done, I was getting a root mismatch error and the only way to solve it was to restart the service.
I thought the problem might be that it was not settling and tested for that. After sending the update, I waited for it to settle completely, but the problem was the same. Then I console logged the states in some places on offchain-state.js and got the following results.
in the part
returns old map state and this causes root mismatch error, also I cannot figure out how to update this internal merkleMap.
the condition inside
gives true || true despite of actual tree is updated.
The text was updated successfully, but these errors were encountered: