@@ -118,10 +118,11 @@ export class Blockchain {
|
|||||||
|
|
||||||
this.pendingTransactions.removeTransaction(tx.toHashHex());
|
this.pendingTransactions.removeTransaction(tx.toHashHex());
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
// TODO: Set these as a variable and then throw an ExtError.
|
||||||
this.pendingTransactions.removeDependentTransactions(tx.toHashHex());
|
this.pendingTransactions.removeDependentTransactions(tx.toHashHex());
|
||||||
|
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`Broadcast failed for ${transaction.getHashHex()}. Removing dependent transactions.`
|
`Broadcast failed for ${transaction.toHashHex()}. Removing dependent transactions.`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user