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

Nonce too low. Expected nonce to be 25 but got 23. Note that transactions can't be queued when automining. #3

Closed
ltfschoen opened this issue Dec 25, 2024 · 3 comments

Comments

@ltfschoen
Copy link
Owner

When custom relayer tries to forward a task from the post execution of the custom Secret Gateway to Ethereum Localhost it displays the following in the Ethereum Localhost logs:

eth_sendRawTransaction

  Nonce too low. Expected nonce to be 25 but got 23. Note that transactions can't be queued when automining.

In the relayer logs it displays the WARNINGs from the Ethereum interface

2024-12-25 06:04:32,459 [Relayer: INFO] Routed {"task_id": "10", "source_network": "31337", "user_address": "0x5FbDB2315678afecb367f032d93F642f64180aa3", "routing_info": "secret1gyruqan6yxf0q423t8z5zce3x7np35uw8s8wqc", "payload_hash": "7WAK7X7oBcDYKQczbNuexnRMTFEp0DaacHxQsUugAnw=", "user_key": "A4MYU1tUEF1Keq5gwI/EX5aHGBtP38YlvRp1P6c5f+11", "user_pubkey": "BIMYU1tUEF1Keq5gwI/EX5aHGBtP38YlvRp1P6c5f+11NUfxHKhpZkby86ywjjEBavrCPmMMXRH1n2H+9XsNKqU=", "routing_code_hash": "0e1904c8f258b365d24865041ab51de62fdbf515d15e8fe785774662201c809a", "task_destination_network": "secretdev-1", "handle": "request_value", "nonce": "AAAAAAAAAAAAAAAY", "callback_gas_limit": 30000000, "payload": "vpn8Qpp/ope4QJKYy8/8p8G1ifldAq17kKszb5djdLyrX9Wmx4Gn5IwFcfoU7aIDBNziSTbI/au05k09aZGEga1egY8FpCcSm33/EnlNB1JLq6cf1gQ9ih4kiWWh04l8DiZF07IryRYai6SnkBS43VEn8dL8hKk9XacfRqHYMXxu32fzjiAMyHPP9rpCyUt83fSaksatZBaOH0w6Hn1IIYAC7m56Oz00kl+7m7DIVqElnFD+82rliUe5t5dEaqP29V4VOUPtUb0RaqdT4dtYrtj4ha3uyApzDQhXefo7Oq6pTNz921XaFsT8vkaRPVMHlHeSGr1MQVL+O784QYEyuQwqvzyOH2TqpAEECpP8PfAfpG74rajh3wPUyJFeDLz+MH/SVS6QxRakjDMplbtNSvuEKavhgHVNoVZGb716RL8fbO3seXeYapORTD7kaG9g/5W+KpP6sX+gn+jlcY2eqQd4S3x8hj8K+hCXbGgGBrJNTyTVSAj64TetFa+WOpURIIhHO7yX8lLuKFIkrWwvIxGOMNBs09A14NmAc8doweKHGHdkmHnm+uU=", "payload_signature": "nj0Mkk06r/aHnvNnU0xx9QY/NGqvd3Ns4b1h0ZdHSFl5QYH/ahoC4bJMKV0yiABxDworI7gUpjau127z4f/Fuw=="} to secretdev-1
2024-12-25 06:04:32,459 [Relayer: INFO] Routing task {'task_destination_network': '31337', 'task_data': {'callback_address': '0x5fbdb2315678afecb367f032d93f642f64180aa3', 'callback_gas_limit': '0x01c9c380', 'callback_selector': '0x62f860d3', 'contract_address': 'secret1mfk7n6mc2cg6lznujmeckdh4x0a5ezf6hx6y8q', 'packet_hash': '0x8aed7123b3481671a2bdde21453d920ada8419af904dd86d047fb8048b20d4ce', 'packet_signature': '0xc7946d22a8b7f16e989170d96a474322c529f1dd38769ea9e5d1c0d6ae7e51fa5763f7f8bce5c7046d3009901d334c162e67a1c73d5772ea2c87b436d330388c1b', 'payload_hash': '0xed600aed7ee805c0d82907336cdb9ec6744c4c5129d0369a707c50b14ba0027c', 'result': '0x7b225f726571756573745f6964223a7b226e6574776f726b223a223331333337222c227461736b5f6964223a223130227d2c225f6b6579223a5b37382c38352c37382c38392c36355d2c225f636f6465223a302c225f6e756e79615f627573696e6573735f636f6e74726163745f61646472657373223a22307841464646333131383231433346334146383633433731303342423137424443314261303436303344227d', 'source_network': 'secretdev-1', 'task_destination_network': '31337', 'task_id': '10', 'msg_index': '0'}}
An RPC error was returned by the node. Check the message provided in the error and any available logs for more information.
2024-12-25 06:04:32,477 [ETH Interface: WARNING] {'code': -32000, 'message': "Nonce too low. Expected nonce to be 25 but got 23. Note that transactions can't be queued when automining.", 'data': {'message': "Nonce too low. Expected nonce to be 25 but got 23. Note that transactions can't be queued when automining.", 'data': None}}
2024-12-25 06:04:32,477 [ETH Interface: WARNING] {'code': -32000, 'message': "Nonce too low. Expected nonce to be 25 but got 23. Note that transactions can't be queued when automining.", 'data': {'message': "Nonce too low. Expected nonce to be 25 but got 23. Note that transactions can't be queued when automining.", 'data': None}}
2024-12-25 06:04:32,477 [Relayer: INFO] Routed [10, "secretdev-1", ["0xed600aed7ee805c0d82907336cdb9ec6744c4c5129d0369a707c50b14ba0027c", "0x8aed7123b3481671a2bdde21453d920ada8419af904dd86d047fb8048b20d4ce", "0x5fbdb2315678afecb367f032d93f642f64180aa3", "0x62f860d3", "0x01c9c380", "0xc7946d22a8b7f16e989170d96a474322c529f1dd38769ea9e5d1c0d6ae7e51fa5763f7f8bce5c7046d3009901d334c162e67a1c73d5772ea2c87b436d330388c1b", "0x7b225f726571756573745f6964223a7b226e6574776f726b223a223331333337222c227461736b5f6964223a223130227d2c225f6b6579223a5b37382c38352c37382c38392c36355d2c225f636f6465223a302c225f6e756e79615f627573696e6573735f636f6e74726163745f61646472657373223a22307841464646333131383231433346334146383633433731303342423137424443314261303436303344227d"]] to 31337
@ltfschoen
Copy link
Owner Author

I've tried adding self.sync_nonce() in the start of the sign_and_send_transaction function try block but then the Etherem Localhost logs don't appear to even display eth_sendRawTransaction at all

@ltfschoen
Copy link
Owner Author

solved it by changing it from sync_interval=30 to sync_interval=5 in eth_interface.py

ltfschoen added a commit that referenced this issue Dec 25, 2024
@ltfschoen
Copy link
Owner Author

The Nonce too low didn't entirely disappear, so changed it to sync_interval=3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant