Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
add clarifying comment
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmurdoch committed Sep 24, 2020
1 parent 163276e commit 430907c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/chains/ethereum/src/components/transaction-pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ export default class TransactionPool extends Emittery.Typed<{}, "drain"> {
transaction.sign(secretKey.toBuffer());
}

// if it is executable add it to the executables queue
if (isExecutableTransaction) {
// if it is executable add it to the executables queue
if (executableOriginTransactions) {
executableOriginTransactions.push(transaction);
} else {
Expand All @@ -166,6 +166,7 @@ export default class TransactionPool extends Emittery.Typed<{}, "drain"> {
this.#drainQueued(origin, queuedOriginTransactions, executableOriginTransactions, transactionNonce);
return true;
} else {
// otherwise, put it in the future queue
if (queuedOriginTransactions) {
queuedOriginTransactions.push(transaction);
} else {
Expand Down

0 comments on commit 430907c

Please sign in to comment.