Skip to content

Commit

Permalink
Port FullTracer::get_tx_number() fix from release_v2.1.0 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
fractasy committed Aug 21, 2023
1 parent 485ce94 commit cfadfee
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 18 deletions.
4 changes: 1 addition & 3 deletions src/main_sm/fork_0/main/full_tracer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ class FullTracer: public FullTracerInterface
}
uint64_t get_tx_number(void)
{
uint64_t txNumber = finalTrace.responses.size();
if (txNumber > 0) txNumber--;
return txNumber;
return finalTrace.responses.size();
}
};

Expand Down
4 changes: 1 addition & 3 deletions src/main_sm/fork_1/main/full_tracer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,7 @@ class FullTracer: public FullTracerInterface
}
uint64_t get_tx_number(void)
{
uint64_t txNumber = finalTrace.responses.size();
if (txNumber > 0) txNumber--;
return txNumber;
return finalTrace.responses.size();
}
};

Expand Down
4 changes: 1 addition & 3 deletions src/main_sm/fork_2/main/full_tracer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,7 @@ class FullTracer: public FullTracerInterface
}
uint64_t get_tx_number(void)
{
uint64_t txNumber = finalTrace.responses.size();
if (txNumber > 0) txNumber--;
return txNumber;
return finalTrace.responses.size();
}
};

Expand Down
4 changes: 1 addition & 3 deletions src/main_sm/fork_3/main/full_tracer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,7 @@ class FullTracer: public FullTracerInterface
}
uint64_t get_tx_number(void)
{
uint64_t txNumber = finalTrace.responses.size();
if (txNumber > 0) txNumber--;
return txNumber;
return finalTrace.responses.size();
}
};

Expand Down
4 changes: 1 addition & 3 deletions src/main_sm/fork_4/main/full_tracer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,7 @@ class FullTracer: public FullTracerInterface

uint64_t get_tx_number(void)
{
uint64_t txNumber = finalTrace.responses.size();
if (txNumber > 0) txNumber--;
return txNumber;
return finalTrace.responses.size();
}
};

Expand Down
4 changes: 1 addition & 3 deletions src/main_sm/fork_5/main/full_tracer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,7 @@ class FullTracer: public FullTracerInterface
}
uint64_t get_tx_number(void)
{
uint64_t txNumber = finalTrace.responses.size();
if (txNumber > 0) txNumber--;
return txNumber;
return finalTrace.responses.size();
}
};

Expand Down

0 comments on commit cfadfee

Please sign in to comment.