Skip to content

Commit

Permalink
refresh proofchain abi and bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
sudeepdino008 committed Feb 21, 2024
1 parent d79d590 commit c4da1da
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 99 deletions.
2 changes: 2 additions & 0 deletions internal/node/eth_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ func (node *ethAgentNode) encodeProveAndUploadReplicaSegment(ctx context.Context
return pTxHash, nil
case strings.Contains(pTxHash, "already known"):
return pTxHash, nil
case strings.Contains(pTxHash, "max submissions limit exceeded"):
return pTxHash, nil
case pTxHash == "":
return "", fmt.Errorf("failed to prove & upload block-replica segment event: %v", currentSegment.SegmentName)
default:
Expand Down
7 changes: 7 additions & 0 deletions internal/proof/proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,13 @@ func executeWithRetry(ctx context.Context, interactor *ProofchainInteractor, pro
return
}

if strings.Contains(err.Error(), "Max submissions limit exceeded") {
log.Error("max submissions limit exceeded, skipping: ", err)
txHash <- "max submissions limit exceeded"

return
}

log.Error("error sending tx to deployed contract: ", err)
txHash <- ""

Expand Down
18 changes: 9 additions & 9 deletions internal/proof/proofchain.abi
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
{
"indexed": false,
"internalType": "uint256",
"name": "secondsPerBlock",
"name": "secondsPerBlockTargetChain",
"type": "uint256"
}
],
Expand Down Expand Up @@ -294,11 +294,11 @@
{
"indexed": true,
"internalType": "uint64",
"name": "secondsPerBlock",
"name": "secondsPerBlockCurrentChain",
"type": "uint64"
}
],
"name": "SecondsPerBlockChanged",
"name": "SecondsPerBlockCurrentChainChanged",
"type": "event"
},
{
Expand Down Expand Up @@ -594,7 +594,7 @@
},
{
"internalType": "uint256",
"name": "secondsPerBlock",
"name": "secondsPerBlockTargetChain",
"type": "uint256"
},
{
Expand Down Expand Up @@ -666,7 +666,7 @@
},
{
"internalType": "uint256",
"name": "secondsPerBlock",
"name": "secondsPerBlockCurrentChain",
"type": "uint256"
}
],
Expand Down Expand Up @@ -715,7 +715,7 @@
"inputs": [
{
"internalType": "address",
"name": "initialOwner",
"name": "initialGovernor",
"type": "address"
},
{
Expand Down Expand Up @@ -937,7 +937,7 @@
},
{
"internalType": "uint256",
"name": "secondsPerBlock",
"name": "secondsPerBlockTargetChain",
"type": "uint256"
}
],
Expand Down Expand Up @@ -1012,11 +1012,11 @@
"inputs": [
{
"internalType": "uint64",
"name": "secondsPerBlock",
"name": "secondsPerBlockCurrentChain",
"type": "uint64"
}
],
"name": "setSecondsPerBlock",
"name": "setSecondsPerBlockCurrentChain",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
Expand Down
179 changes: 89 additions & 90 deletions internal/proof/proofchain.go

Large diffs are not rendered by default.

0 comments on commit c4da1da

Please sign in to comment.