Fix address tracking issues.

This commit is contained in:
softsimon
2020-05-20 17:00:50 +07:00
parent 9a2fb1fe44
commit e5dfeed63c
7 changed files with 29 additions and 27 deletions

View File

@@ -67,7 +67,7 @@
<br><br>
<span class="text-small">
Push transactions related to address: <span class="code">{{ '{' }} 'track-address': '3PbJ...bF9B' {{ '}' }}</span>
to receive all new transactions containing that address as input or output. Returns an array of transactions. 'address-transactions' for new mempool transactions and 'address-block-transactions' for new block confirmed transactions.
to receive all new transactions containing that address as input or output. Returns an array of transactions. 'address-transactions' for new mempool transactions and 'block-transactions' for new block confirmed transactions.
</span>
</td>
</tr>

View File

@@ -142,7 +142,7 @@ export class AssetComponent implements OnInit, OnDestroy {
this.isLoadingAsset = false;
});
this.stateService.assetTransactions$
this.stateService.mempoolTransactions$
.subscribe((transaction) => {
if (this.transactions.some((t) => t.txid === transaction.txid)) {
return;

View File

@@ -7,8 +7,6 @@ import { WebsocketService } from 'src/app/services/websocket.service';
styleUrls: ['./start.component.scss']
})
export class StartComponent implements OnInit {
view: 'blocks' | 'transactions' = 'blocks';
constructor(
private websocketService: WebsocketService,
) { }

View File

@@ -30,8 +30,6 @@ export class TransactionComponent implements OnInit, OnDestroy {
transactionTime = -1;
subscription: Subscription;
rightPosition = 0;
constructor(
private route: ActivatedRoute,
private electrsApiService: ElectrsApiService,