Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refresh proofchain abi and bindings #239

Merged
merged 1 commit into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading