From ac182d38ea955661625f82be41516dcbbd57b095 Mon Sep 17 00:00:00 2001 From: gabrielbosio Date: Mon, 9 Sep 2024 14:45:50 -0300 Subject: [PATCH 1/2] Change staged ledger hash with snarked ledger hash --- operator/mina/lib/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/operator/mina/lib/src/lib.rs b/operator/mina/lib/src/lib.rs index ad5dae273..67c55e8ca 100644 --- a/operator/mina/lib/src/lib.rs +++ b/operator/mina/lib/src/lib.rs @@ -139,9 +139,9 @@ fn check_pub_inputs( &state .body .blockchain_state - .staged_ledger_hash - .non_snark - .ledger_hash + .ledger_proof_statement + .target + .first_pass_ledger }); if pub_inputs .candidate_chain_ledger_hashes From 122a6abe15dcb0216efc379880ae9958918d84ce Mon Sep 17 00:00:00 2001 From: gabrielbosio Date: Mon, 9 Sep 2024 15:11:22 -0300 Subject: [PATCH 2/2] Fix receipt var read --- aggregator/internal/pkg/aggregator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aggregator/internal/pkg/aggregator.go b/aggregator/internal/pkg/aggregator.go index 47cfdedc8..35403ebdd 100644 --- a/aggregator/internal/pkg/aggregator.go +++ b/aggregator/internal/pkg/aggregator.go @@ -278,7 +278,7 @@ func (agg *Aggregator) handleBlsAggServiceResponse(blsAggServiceResp blsagg.BlsA "batchIdentifierHash", "0x"+hex.EncodeToString(batchIdentifierHash[:])) for i := 0; i < MaxSentTxRetries; i++ { - _, err = agg.sendAggregatedResponse(batchData.BatchMerkleRoot, batchData.SenderAddress, nonSignerStakesAndSignature) + receipt, err := agg.sendAggregatedResponse(batchData.BatchMerkleRoot, batchData.SenderAddress, nonSignerStakesAndSignature) if err == nil { agg.logger.Info("Gas cost used to send aggregated response", "gasUsed", receipt.GasUsed)