Parent Log: http://ci.aztec-labs.com/f4d0255556cc3f92 Command: 4c235d55421e2e7b yarn-project/scripts/run_test.sh slasher/src/slasher_client.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/097d526d69efdd1119e3e35a9a525d19b42a8a42 Env: REF_NAME=gh-readonly-queue/next/pr-14346-13774b8f0fbf93a0aeeb8b92af04a906ebe5b8f6 CURRENT_VERSION=0.87.4 CI_FULL=1 Date: Fri May 30 01:46:58 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-14346_amd64_x1-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/ecb015f27647b7a2 01:47:01 [01:47:00.994] INFO: slasher:test:slasher_client Calling anvil_setBlockTimestampInterval with params: [2] 01:47:01 [01:47:01.044] WARN: slasher:test:slasher_client Set block interval to 2 01:47:01 [01:47:01.311] INFO: slasher:test:slasher_client Waiting for 7 transactions to be mined... 01:47:01 [01:47:01.336] INFO: slasher:test:slasher_client All transactions mined successfully 01:47:01 [01:47:01.453] INFO: slasher:test:slasher_client Waiting for 9 transactions to be mined... 01:47:01 [01:47:01.481] INFO: slasher:test:slasher_client All transactions mined successfully 01:47:01 [01:47:01.646] INFO: slasher:test:slasher_client Waiting for 10 transactions to be mined... 01:47:01 [01:47:01.681] INFO: slasher:test:slasher_client All transactions mined successfully 01:47:01 [01:47:01.846] INFO: slasher:test:slasher_client Initialized validator set {"validators":[{"attester":"0x9965507d1a55bcc2695c58ba16fb37d819b0a4dc","withdrawer":"0x9965507d1a55bcc2695c58ba16fb37d819b0a4dc"}],"txHash":"0xb7ef9bea9d04d64a52a7bcf9c01204346448c98fa90b0fd0bcf08c8cf9fe2ee4"} 01:47:01 [01:47:01.849] INFO: slasher:test:slasher_client Waiting for 12 transactions to be mined... 01:47:01 [01:47:01.891] INFO: slasher:test:slasher_client All transactions mined successfully 01:47:01 [01:47:01.904] INFO: slasher:test:slasher_client Waiting for 12 transactions to be mined... 01:47:01 [01:47:01.925] INFO: slasher:test:slasher_client All transactions mined successfully 01:47:01 [01:47:01.942] INFO: slasher:test:slasher_client Aztec L1 contracts initialized {"registryAddress":"0x2c91b32e10e2ac3cff03c7d2d17a4d043bcd176e","governanceAddress":"0x463f37a0faf7bc5819db24e9be1ea5309233e8fe","governanceProposerAddress":"0x72642b3951df6038e361e93f57e428100398e849","rollupAddress":"0x0504e0c27726bc6f106ce1a75980c41b37e077d1","inboxAddress":"0xd1ec1660ea86c266b56dd227d5390c3d3444b8a4","outboxAddress":"0x07767bb458e31d1dee77ef82d283864d0c4a336d","feeJuicePortalAddress":"0x4b9ae4485610fceb55591d36ff3b24ff15c4f5b0","feeJuiceAddress":"0x35e2b457fd415e79fa2570c89d767f7f2e6d409c","stakingAssetAddress":"0x35b00f94fcd02a316d1352ff94f4e6b667d86bb9","rewardDistributorAddress":"0xdc89c24121b8e3aded3174ab26d43bfb801c7685","gseAddress":"0x142fcfda8c10aa79e73d2fadf1a766908cdeccf2","coinIssuerAddress":"0x9965507d1a55bcc2695c58ba16fb37d819b0a4dc"} 01:47:01 [01:47:01.942] INFO: slasher:test:slasher_client Handing over to governance 01:47:01 [01:47:01.947] INFO: slasher Starting Slasher client... 01:47:10 [01:47:10.257] INFO: slasher Wants to slash {"validators":["0x9965507D1a55bcC2695C58ba16FB37d819B0A4dc"],"amounts":[100000000000000000000],"offenses":[0]} 01:47:13 [01:47:13.968] INFO: slasher Slash payload created {"payloadAddress":"0xade86f0825469a56f567063b96e8b5fdc084e8d4","validators":["0x9965507d1a55bcc2695c58ba16fb37d819b0a4dc"],"amounts":[100000000000000000000],"offenses":[0],"observedAtSeconds":1748569633.968,"totalAmount":100000000000000000000} 01:47:13 [01:47:13.970] INFO: slasher Adding monitored payload {"payloadAddress":"0xade86f0825469a56f567063b96e8b5fdc084e8d4","validators":["0x9965507d1a55bcc2695c58ba16fb37d819b0a4dc"],"amounts":[100000000000000000000],"offenses":[0],"observedAtSeconds":1748569633.968,"totalAmount":100000000000000000000} 01:47:14 [01:47:14.302] INFO: slasher selectedPayload {"payloadAddress":"0xade86f0825469a56f567063b96e8b5fdc084e8d4","validators":["0x9965507d1a55bcc2695c58ba16fb37d819b0a4dc"],"amounts":[100000000000000000000],"offenses":[0],"observedAtSeconds":1748569633.968,"totalAmount":100000000000000000000} 01:47:14 [01:47:14.307] INFO: slasher:test:slasher_client 6 01:47:14 [01:47:14.312] INFO: slasher:test:slasher_client 10 01:47:14 [01:47:14.342] INFO: slasher:test:slasher_client Currently in round 0 01:47:14 [01:47:14.342] INFO: slasher:test:slasher_client Round info: {"lastVote":0,"leader":"0x0000000000000000000000000000000000000000","executed":false} 01:47:14 [01:47:14.343] INFO: slasher:test:slasher_client Leader votes: 0 01:47:14 [01:47:14.369] INFO: slasher selectedPayload {"payloadAddress":"0xade86f0825469a56f567063b96e8b5fdc084e8d4","validators":["0x9965507d1a55bcc2695c58ba16fb37d819b0a4dc"],"amounts":[100000000000000000000],"offenses":[0],"observedAtSeconds":1748569633.968,"totalAmount":100000000000000000000} 01:47:14 [01:47:14.915] INFO: slasher:test:slasher_client Currently in round 1 01:47:14 [01:47:14.915] INFO: slasher:test:slasher_client Round info: {"lastVote":0,"leader":"0x0000000000000000000000000000000000000000","executed":false} 01:47:14 [01:47:14.916] INFO: slasher:test:slasher_client Leader votes: 0 01:47:14 [01:47:14.932] INFO: slasher selectedPayload {"payloadAddress":"0xade86f0825469a56f567063b96e8b5fdc084e8d4","validators":["0x9965507d1a55bcc2695c58ba16fb37d819b0a4dc"],"amounts":[100000000000000000000],"offenses":[0],"observedAtSeconds":1748569633.968,"totalAmount":100000000000000000000} 01:47:15 [01:47:15.469] INFO: slasher:test:slasher_client Currently in round 1 01:47:15 [01:47:15.482] INFO: slasher:test:slasher_client Round info: {"lastVote":10,"leader":"0xaDe86f0825469A56F567063b96e8b5fdC084E8D4","executed":false} 01:47:15 [01:47:15.489] INFO: slasher:test:slasher_client Leader votes: 1 01:47:15 [01:47:15.530] INFO: slasher selectedPayload {"payloadAddress":"0xade86f0825469a56f567063b96e8b5fdc084e8d4","validators":["0x9965507d1a55bcc2695c58ba16fb37d819b0a4dc"],"amounts":[100000000000000000000],"offenses":[0],"observedAtSeconds":1748569633.968,"totalAmount":100000000000000000000} 01:47:16 [01:47:16.068] INFO: slasher:test:slasher_client Currently in round 1 01:47:16 [01:47:16.069] INFO: slasher:test:slasher_client Round info: {"lastVote":11,"leader":"0xaDe86f0825469A56F567063b96e8b5fdC084E8D4","executed":false} 01:47:16 [01:47:16.070] INFO: slasher:test:slasher_client Leader votes: 2 01:47:16 [01:47:16.099] INFO: slasher selectedPayload {"payloadAddress":"0xade86f0825469a56f567063b96e8b5fdc084e8d4","validators":["0x9965507d1a55bcc2695c58ba16fb37d819b0a4dc"],"amounts":[100000000000000000000],"offenses":[0],"observedAtSeconds":1748569633.968,"totalAmount":100000000000000000000} 01:47:16 [01:47:16.631] INFO: slasher:test:slasher_client Currently in round 1 01:47:16 [01:47:16.632] INFO: slasher:test:slasher_client Round info: {"lastVote":12,"leader":"0xaDe86f0825469A56F567063b96e8b5fdC084E8D4","executed":false} 01:47:16 [01:47:16.632] INFO: slasher:test:slasher_client Leader votes: 3 01:47:16 [01:47:16.646] INFO: slasher selectedPayload {"payloadAddress":"0xade86f0825469a56f567063b96e8b5fdc084e8d4","validators":["0x9965507d1a55bcc2695c58ba16fb37d819b0a4dc"],"amounts":[100000000000000000000],"offenses":[0],"observedAtSeconds":1748569633.968,"totalAmount":100000000000000000000} 01:47:17 [01:47:17.197] INFO: slasher:test:slasher_client Currently in round 1 01:47:17 [01:47:17.197] INFO: slasher:test:slasher_client Round info: {"lastVote":13,"leader":"0xaDe86f0825469A56F567063b96e8b5fdC084E8D4","executed":false} 01:47:17 [01:47:17.198] INFO: slasher:test:slasher_client Leader votes: 4 01:47:17 [01:47:17.213] INFO: slasher selectedPayload {"payloadAddress":"0xade86f0825469a56f567063b96e8b5fdc084e8d4","validators":["0x9965507d1a55bcc2695c58ba16fb37d819b0a4dc"],"amounts":[100000000000000000000],"offenses":[0],"observedAtSeconds":1748569633.968,"totalAmount":100000000000000000000} 01:47:17 [01:47:17.746] INFO: slasher:test:slasher_client Currently in round 1 01:47:17 [01:47:17.746] INFO: slasher:test:slasher_client Round info: {"lastVote":14,"leader":"0xaDe86f0825469A56F567063b96e8b5fdC084E8D4","executed":false} 01:47:17 [01:47:17.746] INFO: slasher:test:slasher_client Leader votes: 5 01:47:17 [01:47:17.762] INFO: slasher selectedPayload {"payloadAddress":"0xade86f0825469a56f567063b96e8b5fdc084e8d4","validators":["0x9965507d1a55bcc2695c58ba16fb37d819b0a4dc"],"amounts":[100000000000000000000],"offenses":[0],"observedAtSeconds":1748569633.968,"totalAmount":100000000000000000000} 01:47:17 [01:47:17.982] INFO: slasher Waiting for round 2 to be reached 01:47:18 [01:47:18.312] INFO: slasher:test:slasher_client Currently in round 1 01:47:18 [01:47:18.313] INFO: slasher:test:slasher_client Round info: {"lastVote":15,"leader":"0xaDe86f0825469A56F567063b96e8b5fdC084E8D4","executed":false} 01:47:18 [01:47:18.313] INFO: slasher:test:slasher_client Leader votes: 6 01:47:18 [01:47:18.335] INFO: slasher selectedPayload {"payloadAddress":"0xade86f0825469a56f567063b96e8b5fdc084e8d4","validators":["0x9965507d1a55bcc2695c58ba16fb37d819b0a4dc"],"amounts":[100000000000000000000],"offenses":[0],"observedAtSeconds":1748569633.968,"totalAmount":100000000000000000000} 01:47:18 [01:47:18.887] INFO: slasher:test:slasher_client Currently in round 1 01:47:18 [01:47:18.888] INFO: slasher:test:slasher_client Round info: {"lastVote":16,"leader":"0xaDe86f0825469A56F567063b96e8b5fdC084E8D4","executed":false} 01:47:18 [01:47:18.888] INFO: slasher:test:slasher_client Leader votes: 7 01:47:18 [01:47:18.915] INFO: slasher selectedPayload {"payloadAddress":"0xade86f0825469a56f567063b96e8b5fdc084e8d4","validators":["0x9965507d1a55bcc2695c58ba16fb37d819b0a4dc"],"amounts":[100000000000000000000],"offenses":[0],"observedAtSeconds":1748569633.968,"totalAmount":100000000000000000000} 01:47:19 [01:47:19.444] INFO: slasher:test:slasher_client Currently in round 1 01:47:19 [01:47:19.444] INFO: slasher:test:slasher_client Round info: {"lastVote":17,"leader":"0xaDe86f0825469A56F567063b96e8b5fdC084E8D4","executed":false} 01:47:19 [01:47:19.444] INFO: slasher:test:slasher_client Leader votes: 8 01:47:19 [01:47:19.457] INFO: slasher selectedPayload {"payloadAddress":"0xade86f0825469a56f567063b96e8b5fdc084e8d4","validators":["0x9965507d1a55bcc2695c58ba16fb37d819b0a4dc"],"amounts":[100000000000000000000],"offenses":[0],"observedAtSeconds":1748569633.968,"totalAmount":100000000000000000000} 01:47:19 [01:47:19.988] INFO: slasher:test:slasher_client Currently in round 1 01:47:19 [01:47:19.989] INFO: slasher:test:slasher_client Round info: {"lastVote":18,"leader":"0xaDe86f0825469A56F567063b96e8b5fdC084E8D4","executed":false} 01:47:19 [01:47:19.989] INFO: slasher:test:slasher_client Leader votes: 9 01:47:20 [01:47:20.003] INFO: slasher selectedPayload {"payloadAddress":"0xade86f0825469a56f567063b96e8b5fdc084e8d4","validators":["0x9965507d1a55bcc2695c58ba16fb37d819b0a4dc"],"amounts":[100000000000000000000],"offenses":[0],"observedAtSeconds":1748569633.968,"totalAmount":100000000000000000000} 01:47:20 [01:47:20.527] INFO: slasher Executing round {"proposal":"0xaDe86f0825469A56F567063b96e8b5fdC084E8D4","round":1} 01:47:20 [01:47:20.539] INFO: slasher:test:slasher_client Currently in round 2 01:47:20 [01:47:20.540] INFO: slasher:test:slasher_client Round info: {"lastVote":0,"leader":"0x0000000000000000000000000000000000000000","executed":false} 01:47:20 [01:47:20.540] INFO: slasher:test:slasher_client Leader votes: 0 01:47:20 [01:47:20.608] INFO: slasher Slasher client stopped. 01:47:20 [01:47:20.615] INFO: slasher Round executed {"round":1} 01:47:21 FAIL src/slasher_client.test.ts (22.109 s) 01:47:21 SlasherClient 01:47:21 creates payloads when the watcher signals (18579 ms) 01:47:21 01:47:21 SlasherClient › creates payloads when the watcher signals 01:47:21 01:47:21 TransactionExecutionError: Nonce provided for the transaction is lower than the current nonce of the account. 01:47:21 Try increasing the nonce or find the latest nonce with `getTransactionCount`. 01:47:21 01:47:21 Request Arguments: 01:47:21 from: 0x9965507D1a55bcC2695C58ba16FB37d819B0A4dc 01:47:21 to: 0x970dc3c3d9863e93f58fbb267c75211a8c45ed0b 01:47:21 data: 0x6dd7d8ea000000000000000000000000ade86f0825469a56f567063b96e8b5fdc084e8d4 01:47:21 01:47:21 Details: nonce too low 01:47:21 Version: viem@2.23.7 01:47:21 01:47:21 173 | logger.info(`Leader votes: ${leaderVotes}`); 01:47:21 174 | 01:47:21 > 175 | await l1TxUtils.client.sendTransaction(slashingProposer.createVoteRequest(payload!.toString())).catch(err => { 01:47:21 | ^ 01:47:21 176 | if (err.message.includes('GovernanceProposer__OnlyProposerCanVote')) { 01:47:21 177 | return; 01:47:21 178 | } 01:47:21 01:47:21 at getTransactionError (../../node_modules/viem/utils/errors/getTransactionError.ts:44:10) 01:47:21 at sendTransaction (../../node_modules/viem/actions/wallet/sendTransaction.ts:346:11) 01:47:21 at slasher_client.test.ts:175:9 01:47:21 at retryUntil (../../foundation/dest/retry/index.js:84:24) 01:47:21 at Object.<anonymous> (slasher_client.test.ts:164:5) 01:47:21 01:47:21 Cause: 01:47:21 NonceTooLowError: Nonce provided for the transaction is lower than the current nonce of the account. 01:47:21 Try increasing the nonce or find the latest nonce with `getTransactionCount`. 01:47:21 01:47:21 Details: nonce too low 01:47:21 Version: viem@2.23.7 01:47:21 01:47:21 173 | logger.info(`Leader votes: ${leaderVotes}`); 01:47:21 174 | 01:47:21 > 175 | await l1TxUtils.client.sendTransaction(slashingProposer.createVoteRequest(payload!.toString())).catch(err => { 01:47:21 | ^ 01:47:21 176 | if (err.message.includes('GovernanceProposer__OnlyProposerCanVote')) { 01:47:21 177 | return; 01:47:21 178 | } 01:47:21 01:47:21 at getNodeError (../../node_modules/viem/utils/errors/getNodeError.ts:99:12) 01:47:21 at ../../node_modules/viem/utils/errors/getTransactionError.ts:37:19 01:47:21 at getTransactionError (../../node_modules/viem/utils/errors/getTransactionError.ts:43:5) 01:47:21 at sendTransaction (../../node_modules/viem/actions/wallet/sendTransaction.ts:346:11) 01:47:21 at slasher_client.test.ts:175:9 01:47:21 at retryUntil (../../foundation/dest/retry/index.js:84:24) 01:47:21 at Object.<anonymous> (slasher_client.test.ts:164:5) 01:47:21 01:47:21 Cause: 01:47:21 TransactionRejectedRpcError: Transaction creation failed. 01:47:21 01:47:21 URL: http://127.0.0.1:8545 01:47:21 Request body: {"method":"eth_sendRawTransaction","params":["0x02f893827a693985746a476b8185746a54c0e683025ef394970dc3c3d9863e93f58fbb267c75211a8c45ed0b80a46dd7d8ea000000000000000000000000ade86f0825469a56f567063b96e8b5fdc084e8d4c001a0f64fba27cbb445900fc2bc6b99aa661b31783a1f9fe720ab37e5cac212584933a06cfeb41583d8844dd220b771282a4f6e5773d7ef746d1da2e8f38d40a950e8a1"]} 01:47:21 01:47:21 Details: nonce too low 01:47:21 Version: viem@2.23.7 01:47:21 01:47:21 at withRetry.delay.count.count (../../node_modules/viem/utils/buildRequest.ts:161:25) 01:47:21 at attemptRetry (../../node_modules/viem/utils/promise/withRetry.ts:44:22) 01:47:21 01:47:21 Cause: 01:47:21 TransactionRejectedRpcError: Transaction creation failed. 01:47:21 01:47:21 URL: http://127.0.0.1:8545 01:47:21 Request body: {"method":"eth_sendRawTransaction","params":["0x02f893827a693985746a476b8185746a54c0e683025ef394970dc3c3d9863e93f58fbb267c75211a8c45ed0b80a46dd7d8ea000000000000000000000000ade86f0825469a56f567063b96e8b5fdc084e8d4c001a0f64fba27cbb445900fc2bc6b99aa661b31783a1f9fe720ab37e5cac212584933a06cfeb41583d8844dd220b771282a4f6e5773d7ef746d1da2e8f38d40a950e8a1"]} 01:47:21 01:47:21 Details: nonce too low 01:47:21 Version: viem@2.23.7 01:47:21 01:47:21 at withRetry.delay.count.count (../../node_modules/viem/utils/buildRequest.ts:161:25) 01:47:21 at attemptRetry (../../node_modules/viem/utils/promise/withRetry.ts:44:22) 01:47:21 01:47:21 Cause: 01:47:21 RpcRequestError: RPC Request failed. 01:47:21 01:47:21 URL: http://127.0.0.1:8545 01:47:21 Request body: {"method":"eth_sendRawTransaction","params":["0x02f893827a693985746a476b8185746a54c0e683025ef394970dc3c3d9863e93f58fbb267c75211a8c45ed0b80a46dd7d8ea000000000000000000000000ade86f0825469a56f567063b96e8b5fdc084e8d4c001a0f64fba27cbb445900fc2bc6b99aa661b31783a1f9fe720ab37e5cac212584933a06cfeb41583d8844dd220b771282a4f6e5773d7ef746d1da2e8f38d40a950e8a1"]} 01:47:21 01:47:21 Details: nonce too low 01:47:21 Version: viem@2.23.7 01:47:21 01:47:21 at request (../../node_modules/viem/clients/transports/http.ts:154:19) 01:47:21 at withRetry.delay.count.count (../../node_modules/viem/utils/buildRequest.ts:129:22) 01:47:21 at attemptRetry (../../node_modules/viem/utils/promise/withRetry.ts:44:22) 01:47:21 01:47:21 Test Suites: 1 failed, 1 total 01:47:21 Tests: 1 failed, 1 total 01:47:21 Snapshots: 0 total 01:47:21 Time: 22.18 s 01:47:21 Ran all test suites matching /slasher\/src\/slasher_client.test.ts/i. 01:47:21 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?