-
Notifications
You must be signed in to change notification settings - Fork 33
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
Agents testnet fixes #1557
Closed
Closed
Agents testnet fixes #1557
Changes from 221 commits
Commits
Show all changes
298 commits
Select commit
Hold shift + click to select a range
3f4da19
more updates
trajan0x d7f56e8
fix wrong domain in deploy script
trajan0x eae76f2
Merge branch 'domain-fix' into feat/devnet-up (#1376, fixes issue int…
trajan0x cf17957
diff fix
trajan0x 8b8f252
comment fix
trajan0x 380e962
Merge branch 'domain-fix' into feat/devnet-up
trajan0x 8102b92
agent proof updates
trajan0x 0f395bc
synapse domain fix
trajan0x 5298a14
Merge branch 'domain-fix' into feat/devnet-up
trajan0x b54c0e2
generic linter fix
trajan0x 1df2f9e
get guard to boot [goreleaser]
trajan0x ccbfe34
merge #1248
trajan0x f7c6787
more yaml lint
trajan0x a603db3
some nice debugging tools
trajan0x 8d42d1b
generic linter fix
trajan0x 44700a6
finish devnet
trajan0x eaca30b
fix lint commandS
trajan0x 7992a2d
d
trajan0x 03a8b00
wrap up rudimentary devneT
trajan0x 1788a51
create3
trajan0x d57c297
deployer/create fix
trajan0x de82034
fix ubuntu
trajan0x bb71314
lowercase non-constants
trajan0x bcb2522
icreate3 import
trajan0x da76855
Revert "icreate3 import"
trajan0x 246b504
move to internal
trajan0x a4bd732
another internal change
trajan0x 00cdb48
update installs on dev containers for easier debugging
trajan0x 46c1b61
Update packages/contracts-core/README.md
trajan0x 6a993d7
address https://github.com/synapsecns/sanguine/pull/1381#discussion_r…
trajan0x a480961
Merge branch 'master' into feat/devnet-upper
trajan0x 616c5ab
Replace Create3 with ZeframLou/create3-factory (#1387)
trajan0x 6b100fd
Revert "Replace Create3 with ZeframLou/create3-factory (#1387)" (#1388)
trajan0x fc95521
Replace Create3 with ZeframLou/create3-factory
trajan0x 305c558
Merge branch 'master' into feat/devnet-upper
trajan0x b64a4e6
WIP: add initial devnet script
dwasse b212f2b
fix package issue
trajan0x 23c91f6
WIP: add ping pong sending logic
dwasse 4c90604
WIP: add event listening
dwasse 0e248ba
Cleanup: var shadowing
dwasse 3950c35
WIP: working pings being sent
dwasse 310404b
Config: add pingpong address to scribe indexer
dwasse edbf5c3
Merge branch 'feat/devnet-upper' into feat/devnet-load-script
dwasse 78ca9f1
WIP: add makeScribeClient() helper
dwasse 082258f
WIP: use scribe for log streaming
dwasse c60e94d
WIP: deployment hacks
dwasse c532845
WIP: parsing pingpong events
dwasse 53d127d
Cleanup: enhanced tracing for notary
dwasse 40dcaca
WIP: add notary logs
dwasse a77180a
fix scribe config
trajan0x d4acc27
init
nautsimon 0fb4d0e
Update server.go
nautsimon 3e4e1a0
Update indexer.go
nautsimon 3549fc7
WIP: logs
dwasse 704b75f
Merge branch 'feat/update-last-indexed-scribe' into feat/devnet-load-…
dwasse 0c1185b
WIP: executing ping messages
dwasse d85d952
WIP: add agent logs
dwasse aca2944
Config: set anvil block time
dwasse 1210ae1
WIP: get current block number for starting block
dwasse 5eac57a
Notary logs
dwasse 33682c3
WIP: working attestation submission
dwasse 3580252
Feat: check attNonce before submitSnapshot
dwasse 6de2ed1
Feat: add stopping condition to load script
dwasse b0df86c
[docker]
dwasse ae46c4e
[goreleaser]
dwasse 09787d7
[goreleaser] notary still processes attNonce = 0
dwasse df29662
[goreleaser] add logs
dwasse 6e5b409
[goreleaser] gasBlock logging + attempted fix
dwasse 7fb3b83
[goreleaser] more submitter logging
dwasse 7b882a0
[goreleaser] attempt to force no batching
dwasse e328ef3
[goreleaser] more notary logs
dwasse d7ff854
Merge branch 'master' into feat/update-last-indexed-scribe
nautsimon 4cd1efd
update logs
nautsimon 0433dfa
Fix: consistent construction of omnirpc url
dwasse c1bf0f6
Merge branch 'feat/update-last-indexed-scribe' into feat/devnet-load-…
dwasse 9e1a967
Feat: add retry around executor contract setup
dwasse 65029c7
Revert "[goreleaser] gasBlock logging + attempted fix"
dwasse 806c34a
Revert "[goreleaser] attempt to force no batching"
dwasse a56b7e3
WIP: logs
dwasse 94feb36
[goreleaser]
dwasse 0f03194
[goreleaser] chain setup logging
dwasse a9c4b43
[goreleaser] Revert "Revert "[goreleaser] gasBlock logging + attempte…
dwasse b442206
[goreleaser] more logs
dwasse 8c1d79f
Add logs for message status
dwasse b7e8f60
[goreleaser] add LogTx() helper
dwasse 2c5faa2
[goreleaser] more logs with snapRoot
dwasse 7da26a9
[goreleaser] Executor marks as executed using on-chain result
dwasse 88bd573
Fix: set anvil block time in simulated backend
dwasse 946918f
[goreleaser] Fix: start submitter
dwasse efcd0a5
[goreleaser] Revert attempted submitter fix
dwasse 82d03a7
[goreleaser] remove all changes to submitter
dwasse 54ab414
[goreleaser] Revert "Executor marks as executed using on-chain result"
dwasse 60ef7e6
[goreleaser] Remove retry from guard cmd
dwasse 7e48f29
[goreleaser] don't retry upon starting notary
dwasse dc0eba2
[goreleaser] add span events upon execute()
dwasse 0360dc3
[goreleaser] More span events on submitter
dwasse ecdf086
[goreleaser] check for nil tx, remove extra spans
dwasse bb70d51
[goreleaser] Exit setGasPrice() if cannot get gas block
dwasse 6937fb0
[goreleaser] Merge branch 'master' into feat/devnet-load-script
dwasse 1f93d81
[goreleaser] Fix: executor build
dwasse da3122b
[goreleaser] enhance guard tracing
dwasse c4933ae
[goreleaser] retry loadOriginStates()
dwasse cc49a19
always capture [goreleaser]
trajan0x 50883e4
dangerous undo me [goreleaser]
trajan0x d81df2d
Revert "dangerous undo me [goreleaser]"
trajan0x 0aea8a7
[goreleaser] add ExecuteRetryInterval to executor
dwasse cc86fdb
Merge branch 'feat/devnet-load-script' of github.com:synapsecns/sangu…
dwasse f57ccd1
[goreleaser] add defaultMaxTrySeconds
dwasse d9a5b65
[goreleaser] set didSubmitLatestNotaryAttestation to true after submit
dwasse 5daabd9
Add last attempt logs
dwasse d9672c0
[goreleaser] add tracing to executor utils
dwasse 8015545
Feat: add testnet script
dwasse bf45f06
[goreleaser] add notary spans, skip attNonce == 0
dwasse 9c3edcc
[goreleaser] only submit snapshot if nonce is not known
dwasse 1be1518
Log with summit chain id for notary snapshots
dwasse 8a5c473
[goreleaser] split up bumpTx spans
dwasse 28dea84
[goreleaser] add guard logs
dwasse 5d66e83
[goreleaser] fix: executor retry interval
dwasse 3d468b1
[goreleaser] don't exit guard on log handling err
dwasse ad91d29
Working testnet load script
dwasse 5de20c2
Parse sent events
dwasse c261b09
Verify messages after iteration
dwasse 7534c5f
Add extra leaf caches
dwasse 31bf0a9
[goreleaser] Trigger retry with checkIfExecuted()
dwasse ec05a58
Remove log
dwasse ee8a1ac
[goreleaser] Revert "[goreleaser] Trigger retry with checkIfExecuted()"
dwasse cd25dce
[goreleaser] order by nonce asc
dwasse 8ac2d17
[goreleaser] add leaf to message model
dwasse 5806e0f
[goreleaser] add originTxHash to message model
dwasse ab8a12a
Add snapshot root to processSnapshot tracing
dwasse 2aa051d
[goreleaser] pass log to handlers
dwasse 8e0f79b
[goreleaser] only update summitMyLatestStates after submitting snapshot
dwasse 37fd9a7
[goreleaser] max execute attempts
dwasse 7660ed5
[goreleaser] more execute() attributes
dwasse d8a6236
[goreleaser] only mark as executed if verified on chain
dwasse 8d812ad
[goreleaser] sort by desc
dwasse b61141f
[goreleaser] add spans
dwasse 74fb0ae
[goreleaser] add verifyOriginMerkleProof
dwasse 328294c
[goreleaser] add span events
dwasse 0b93543
[goreleaser] extra snapRoot state filter
dwasse e5a8988
[goreleaser] guard error logging
dwasse 0645a6d
[goreleaser] filter on snapshotRoot in verifyStateMerkleProof()
dwasse a451ef0
[goreleaser] add spans on notary
dwasse 05d9087
[goreleaser] notary refactor
dwasse 1a24921
Continuously verify messages in background
dwasse 935f422
[goreleaser] use sync.Map in script
dwasse 3fbfe65
Fix print
dwasse 9b9ed8d
[goreleaser] use forked version of w3 for better error msgs
dwasse c8845c8
[goreleaser] use errgroup ctx in guard cmd
dwasse 3662a1f
Tx receipt error handling
dwasse 4e4e41d
[goreleaser] all spans use snapRoot
dwasse d7debb7
[goreleaser] add spans to executor snapshot processing
dwasse 468d7a9
[goreleaser] add domain to spans
dwasse 50e5914
Revert "[goreleaser] only mark as executed if verified on chain"
dwasse c1942c1
[goreleaser] add span
dwasse b71f704
[goreleaser] Fix: handle edge case where attestations have the same d…
dwasse 0d0f4cd
Fix: executor db tests
dwasse f4da95e
[goreleaser] Fix: earliest state db query
dwasse 5a3f663
[goreleaser] more spans
dwasse 07e1933
[goreleaser] add spans to notary
dwasse 3a2a501
[goreleaser] directly insert states from attestation
dwasse ad12d7b
[goreleaser] spans
dwasse 1384e67
[goreleaser] logs around GetTimestampForMessage
dwasse d2cfb96
[goreleaser] add submitter spans
dwasse 307089a
[goreleaser] more submitter spans
dwasse 5372ab2
[goreleaser] bump submitter deadline
dwasse 382a48e
[goreleaser] add another submitter span
dwasse a8fd4be
[goreleaser] more events
dwasse e352210
[goreleaser] call updateOldTxStatuses() outside loop in the case that…
dwasse 4b84d46
Hardcode txOpts for doPing()
dwasse 0d0ee16
Script retry handling
dwasse 1463d7d
[goreleaser] fix: span
dwasse a1965a1
Merge branch 'master' into feat/devnet-load-script-squash
dwasse 7175793
Cleanup: remove logs
dwasse 2c483e5
[goreleaser] add event to guard snapshot
dwasse 8d3925e
[goreleaser] Add spans to guard
dwasse f977e0c
[goreleaser] Add batchError attribute
dwasse 70a6262
[goreleaser] Add snapshot event
dwasse 499e26f
[goreleaser] lower tx deadline
dwasse 8a361ec
[goreleaser] notary spans
dwasse 65c97bb
[goreleaser] add lightmanager log
dwasse c7bbd5a
[goreleaser] addAgent() in notary upon startup
dwasse 2fe8017
Cleanup: remove unused latestSummitBlock
dwasse 470518f
[goreleaser] add ownerSigner
dwasse d6be226
[goreleaser] bypass submitter for onlyOwner tx
dwasse e5abfcc
[goreleaser] Use empty leaf for getProof() before addAgent()
dwasse a366de3
[goreleaser] Add tracing to shouldRegisterNotaryOnDestination
dwasse 32af246
[goreleaser] Temp remove restriction on matching agent root
dwasse 2a41549
Cleanup: new agent addresses
dwasse 25d7ebe
[goreleaser] Clean up tracing
dwasse cc28822
[goreleaser] add spans for db queries
dwasse 849248e
Add balance checking for load script
dwasse 045dff1
[goreleaser] Cleanup: scribe connect timeout
dwasse cd231b5
Regenerate agents
ChiTimesChi 41bfee3
Fix: agent build
dwasse 4cdb05b
Feat: check agent balances / statuses before starting load script
dwasse 1fe146e
[goreleaser] remove Notary.currentSnapRoot
dwasse 6e93a6e
[goreleaser] add fraud spans
dwasse fb764d1
Cleanup: add handleInvalidReceipt()
dwasse 2c43eed
[goreleaser] add spans for all guard events
dwasse 6678aa8
[goreleaser] Add Notary.isValidAttestation()
dwasse 5bd867f
[goreleaser] add new block explorer urls
dwasse 82f6496
Config: add scroll sepolia / mumbai to load config
dwasse 581a6de
Fix: agents types test build
dwasse 28e8e23
Config: check notary balances on summit
dwasse 51ce5ba
[goreleaser] Revert "[goreleaser] remove Notary.currentSnapRoot"
dwasse 4c313d9
[goreleaser] add state report chains event
dwasse 7472bb9
[goreleaser] add processMessage events
dwasse ff8a210
[goreleaser] return isSubmitted = true for attNonce == 0
dwasse cb53f5e
Add agentevents script
dwasse 68b91e7
Cleanup: spans
dwasse 138bc40
Fix: notary registration
dwasse 3d6ef83
[goreleaser] add inbox address check
dwasse 3dc9188
Update load config for new deployment
dwasse 4a838cd
[goreleaser] add new span for submitSnapshot()
dwasse 6c765b9
Update client in load config
dwasse 14c516d
[goreleaser] remove shouldSendToDestination from shouldRegisterNotary…
dwasse 811d6f0
[goreleaser] isAlreadySubmitted() returns false for attNonce == 0
dwasse 182937c
[goreleaser] add attestedSnapRoot to prevent duplicate attestations
dwasse dc2c3ca
Merge branch 'master' into feat/devnet-load-script-squash
dwasse 9422b00
Merge branch 'chore/regenerate-agents-20231119' into feat/devnet-load…
dwasse ce18a13
Add LastAttestationNonce to destination domain
dwasse ebf7566
Return early from 0 attestation nonce
dwasse de61862
Add Notary.notaryStatus
dwasse 4dda70d
[goreleaser] Add last attestation nonce check
dwasse c58de7e
Use proper ping pong client addresses in load config
dwasse 2f7a30e
[goreleaser] add merkle_index span
dwasse 692a9e8
Merge branch 'feat/devnet-load-script-squash' of github.com:synapsecn…
dwasse eb7d739
[goreleaser] new build
dwasse 9f21ad3
[goreleaser] add sanity check for messages coming from origin
dwasse 12b532f
[goreleaser] add chainConfigs
dwasse 6415e17
[goreleaser] Fix: nil map
dwasse 02cef9b
Cleanup: remove scribe logic from load script
dwasse 4634651
Update load script for polled iterations
dwasse 27765b7
Remove clearNonce() call on load script
dwasse 4c6e360
Log unexecuted txes
dwasse 95a5b97
Validate agents on each iter
dwasse cf5535c
Cleanup: remove unused funcs
dwasse 94f8fe7
Use errgroup in runRoutes()
dwasse c581aac
[goreleaser] Fix: don't return error on unexpected nonce
dwasse 8ccfe84
Config: update load config with bsc testnet
dwasse 4a03c8d
[goreleaser] add streamLogs span
dwasse cfdabfc
[goreleaser] add tracing for tree
dwasse d46992d
[goreleaser] remove unnecessary spans
dwasse d39e6e9
[goreleaser] remove gorm tracing for agents
dwasse 9792a62
Increase balance threshold; simplify clearMaps()
dwasse 8172733
[goreleaser] Fix: build
dwasse 2a7ba40
Print rolling dropped txs
dwasse b2af9bf
Cleanup: remove gas limit from DoPing() call, temp disable bsc testnet
dwasse bcb9d13
Set gas limit of DoPing() to 500000
dwasse File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change from checking
dbTx.RowsAffected
to checkingtimestamp
is a good one, as it ensures that a valid timestamp is returned. However, the print statement on line 64 should be replaced with a proper logging statement for production code.Commitable suggestion