Skip to content
Snippets Groups Projects
Commit 259d7542 authored by Bartek Wrona's avatar Bartek Wrona
Browse files

broadcast transaction observer should catch also transactions signed using legacy serialization

parent 6521ee4e
No related branches found
No related tags found
No related merge requests found
Pipeline #117525 failed
......@@ -95,7 +95,13 @@ export class WorkerBee implements IWorkerBee {
return {
subscribe: observer => {
const listener = this.observe.onTransactionId(apiTx.id).provideBlockHeaderData().subscribe({
const txId = apiTx.id;
let txObserver = this.observe.onTransactionId(txId);
const legacyId = apiTx.legacy_id;
if(legacyId !== apiTx.id)
txObserver = txObserver.or.onTransactionId(legacyId);
const listener = txObserver.provideBlockHeaderData().subscribe({
next(val) {
observer.next?.({
transaction: val.transactions[apiTx.id]!,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment