mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-06 19:06:42 +01:00
Update to last Poseidon & go-merkletree versions
Update to last Poseidon (go-iden3-crypto) & go-merkletree versions, update the affected test vectors, and check ZKInputs compatibility with last version of circuits. Update to last Poseidon version (which includes the changes of the reference implementation from26ddaa91db) Compatible with update at circomlib (cf853c1cc9)
This commit is contained in:
@@ -446,9 +446,9 @@ func TestSyncGeneral(t *testing.T) {
|
||||
require.Equal(t, 2, len(blocks[i].Rollup.Batches[0].L1CoordinatorTxs))
|
||||
// Set StateRoots for batches manually (til doesn't set it)
|
||||
blocks[i].Rollup.Batches[0].Batch.StateRoot =
|
||||
newBigInt("18906357591508007884273218035694076596537737437965299189312069102730480717391")
|
||||
newBigInt("11432094872416618651837327395264042968926668786266585816625577088890451620254")
|
||||
blocks[i].Rollup.Batches[1].Batch.StateRoot =
|
||||
newBigInt("9513185123401321669660637227182204000277156839501731093239187625486561933297")
|
||||
newBigInt("16914212635847451457076355431350059348585556180740555407203882688922702410093")
|
||||
// blocks 1 (blockNum=3)
|
||||
i = 1
|
||||
require.Equal(t, 3, int(blocks[i].Block.Num))
|
||||
@@ -457,9 +457,9 @@ func TestSyncGeneral(t *testing.T) {
|
||||
require.Equal(t, 3, len(blocks[i].Rollup.Batches[0].L2Txs))
|
||||
// Set StateRoots for batches manually (til doesn't set it)
|
||||
blocks[i].Rollup.Batches[0].Batch.StateRoot =
|
||||
newBigInt("13060270878200012606074130020925677466793317216609491464427188889005039616594")
|
||||
newBigInt("13535760140937349829640752733057594576151546047374619177689224612061148090678")
|
||||
blocks[i].Rollup.Batches[1].Batch.StateRoot =
|
||||
newBigInt("21427104994652624302859637783375978708867165042357535792408500519060088086054")
|
||||
newBigInt("19413739476363469870744893742469056615496274423228302914851564791727474664804")
|
||||
|
||||
// Generate extra required data
|
||||
ethAddTokens(blocks, client)
|
||||
@@ -638,9 +638,9 @@ func TestSyncGeneral(t *testing.T) {
|
||||
|
||||
// Set StateRoots for batches manually (til doesn't set it)
|
||||
blocks[0].Rollup.Batches[0].Batch.StateRoot =
|
||||
newBigInt("11218510534825843475100588932060366395781087435899915642332104464234485046683")
|
||||
newBigInt("14095767774967159269372103336737817266053275274769794195030162905513860477094")
|
||||
blocks[0].Rollup.Batches[1].Batch.StateRoot =
|
||||
newBigInt("20283020730369146334077598087403837297563965802277806438205710455191646998983")
|
||||
newBigInt("2095674348545184674850951945506660952512376416769035169971006930847780339914")
|
||||
|
||||
for i := 0; i < 4; i++ {
|
||||
client.CtlRollback()
|
||||
|
||||
Reference in New Issue
Block a user