hyperledger / caliper

A blockchain benchmark framework to measure performance of multiple blockchain solutions https://wiki.hyperledger.org/display/caliper
https://hyperledger.github.io/caliper/
Apache License 2.0
642 stars 403 forks source link

When I increase the TPS, exceeding 110, errors occur,”Transaction nonce is too distant from current sender nonce“ or "Transaction nonce is too low" #1568

Closed haerker closed 2 months ago

haerker commented 2 months ago

Which Caliper version are you using?

0.6

Which Node.JS version are you using?

v20.11.1

Which operating system are you using?

ubuntu22.04

Please provide some context for your error. For example, when did the error occur? What were you trying to achieve, and how?

When I increase the TPS on my test subject, which is a Besu private network with sufficient block gas limit, errors occur,

What was the observed incorrect behavior?

2024.05.06-20:03:36.694 error [caliper] [ethereum-connector] Error: Returned error: Transaction nonce is too distant from current sender nonce 2024.05.06-20:03:36.697 error [caliper] [ethereum-connector] Failed tx on simple; calling method: open; nonce: 0x2296 2024.05.06-20:03:36.697 error [caliper] [ethereum-connector] Error: Returned error: Transaction nonce is too distant from current sender nonce 2024.05.06-20:03:36.700 error [caliper] [ethereum-connector] Failed tx on simple; calling method: open; nonce: 0x2297 2024.05.06-20:03:36.701 error [caliper] [ethereum-connector] Error: Returned error: Transaction nonce is too distant from current sender nonce 2024.05.06-20:03:36.703 error [caliper] [ethereum-connector] Failed tx on simple; calling method: open; nonce: 0x2298 2024.05.06-20:03:36.703 error [caliper] [ethereum-connector] Error: Returned error: Transaction nonce is too distant from

Please provide the error logs and their surroundings.

2024.05.06-20:03:36.694 error [caliper] [ethereum-connector]    Error: Returned error: Transaction nonce is too distant from current sender nonce
2024.05.06-20:03:36.697 error [caliper] [ethereum-connector]    Failed tx on simple; calling method: open; nonce: 0x2296
2024.05.06-20:03:36.697 error [caliper] [ethereum-connector]    Error: Returned error: Transaction nonce is too distant from current sender nonce
2024.05.06-20:03:36.700 error [caliper] [ethereum-connector]    Failed tx on simple; calling method: open; nonce: 0x2297
2024.05.06-20:03:36.701 error [caliper] [ethereum-connector]    Error: Returned error: Transaction nonce is too distant from current sender nonce
2024.05.06-20:03:36.703 error [caliper] [ethereum-connector]    Failed tx on simple; calling method: open; nonce: 0x2298
2024.05.06-20:03:36.703 error [caliper] [ethereum-connector]    Error: Returned error: Transaction nonce is too distant from current sender nonce
2024.05.06-20:03:36.705 error [caliper] [ethereum-connector]    Failed tx on simple; calling method: open; nonce: 0x2299
2024.05.06-20:03:36.705 error [caliper] [ethereum-connector]    Error: Returned error: Transaction nonce is too distant from current sender nonce
2024.05.06-20:03:36.708 error [caliper] [ethereum-connector]    Failed tx on simple; calling method: open; nonce: 0x229a
2024.05.06-20:03:36.708 error [caliper] [ethereum-connector]    Error: Returned error: Transaction nonce is too distant from current sender nonce
2024.05.06-20:03:36.709 error [caliper] [ethereum-connector]    Failed tx on simple; calling method: open; nonce: 0x229b
2024.05.06-20:03:36.710 error [caliper] [ethereum-connector]    Error: Returned error: Transaction nonce is too distant from current sender nonce
2024.05.06-20:03:36.711 error [caliper] [ethereum-connector]    Failed tx on simple; calling method: open; nonce: 0x229c
2024.05.06-20:03:36.712 error [caliper] [ethereum-connector]    Error: Returned error: Transaction nonce is too distant from current sender nonce
2024.05.06-20:03:36.714 error [caliper] [ethereum-connector]    Failed tx on simple; calling method: open; nonce: 0x229d
2024.05.06-20:03:36.714 error [caliper] [ethereum-connector]    Error: Returned error: Transaction nonce is too distant from current sender nonce
2024.05.06-20:03:36.716 error [caliper] [ethereum-connector]    Failed tx on simple; calling method: open; nonce: 0x229e
2024.05.06-20:03:36.716 error [caliper] [ethereum-connector]    Error: Returned error: Transaction nonce is too distant from current sender nonce

Please provide your benchmark configuration file content, if possible.

simpleArgs: &simple-args
  initialMoney: "10000"
  moneyToTransfer: "10"
  numberOfAccounts: &number-of-accounts 500
  tps: &tps 300

test:
  name: simple
  description: >-
    This is an example benchmark for Caliper, to test the backend DLT's
    performance with simple account opening & querying transactions.
  workers:
    number: 1
  rounds:
    - label: open
      description: >-
        Test description for the opening of an account through the deployed
        contract.
      txNumber: *tps
      rateControl:
        type: fixed-rate
        opts:
          tps: *tps
      workload:
        module: benchmarks/scenario/simple/open.js
        arguments: *simple-args
    - label: query
      description: Test description for the query performance of the deployed contract.
      txNumber: *tps
      rateControl:
        type: fixed-rate
        opts:
          tps: *tps
      workload:
        module: benchmarks/scenario/simple/query.js
        arguments: *simple-args

Please provide your network configuration file content, if possible.

"config" : {
    "chainId" : 1337,
    "berlinBlock" : 0,
    "ibft2" : {
      "blockperiodseconds" : 1,
      "epochlength" : 30000,
      "requesttimeoutseconds" : 2
    }
  },
  "nonce" : "0x0",
  "timestamp" : "0x58ee40ba",
  "gasLimit" : "0xe4e1c0",
  "difficulty" : "0x1",
  "mixHash" : "0x63746963616c2062797a616e74696e65206661756c7420746f6c6572616e6365",
  "coinbase" : "0x0000000000000000000000000000000000000000",

Please provide your workload module content, if possible.

No response

Please provide any additional information you deem relevant to the error.

No response