Skip to content

Commit

Permalink
Code used live in mainnet (#572)
Browse files Browse the repository at this point in the history
* Add sleep eth2near relay

* Increase the gas used to relay blocks

* Update message for missing signature in watchdog

Co-authored-by: Ubuntu <[email protected]>
Co-authored-by: Ahmed Ali <[email protected]>
  • Loading branch information
3 people authored Aug 6, 2021
1 parent c11c368 commit 3b34086
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion near2eth/near2eth-block-relay/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ class Near2EthRelay {

await clientContract.methods.addLightClientBlock(borshBlock).send({
from: ethMasterAccount,
gas: 7000000,
gas: 10000000,
handleRevert: true,
gasPrice: gasPrice.mul(new BN(ethGasMultiplier))
})
Expand All @@ -265,6 +265,7 @@ class Near2EthRelay {
}

console.log('Submitted.')
await sleep(240000) // To prevent submitting the same block again
continue
}
}
Expand Down
2 changes: 1 addition & 1 deletion near2eth/watchdog/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class Watchdog {
.checkBlockProducerSignatureInHead(i)
.call()
} catch (e) {
if (e.message.endsWith('This signature was skipped')) {
if (e.message.endsWith('No such signature')) {
console.log('Signature skipped')
continue
} else {
Expand Down

0 comments on commit 3b34086

Please sign in to comment.