trac-peer 0.1.69 → 0.1.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.js +0 -12
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -553,7 +553,6 @@ export class Peer extends ReadyResource {
|
|
|
553
553
|
this.tx_pool[msg.tx] = msg;
|
|
554
554
|
}
|
|
555
555
|
});
|
|
556
|
-
this.updater();
|
|
557
556
|
}
|
|
558
557
|
|
|
559
558
|
async initContract(){
|
|
@@ -563,17 +562,6 @@ export class Peer extends ReadyResource {
|
|
|
563
562
|
this.contract_instance = new this.contract(this.protocol_instance);
|
|
564
563
|
}
|
|
565
564
|
|
|
566
|
-
async updater() {
|
|
567
|
-
while (true) {
|
|
568
|
-
if (this.base.isIndexer &&
|
|
569
|
-
this.base.view.core.length >
|
|
570
|
-
this.base.view.core.signedLength) {
|
|
571
|
-
await this.base.append(null);
|
|
572
|
-
}
|
|
573
|
-
await this.sleep(1_000);
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
|
|
577
565
|
async close() {
|
|
578
566
|
if (this.swarm) {
|
|
579
567
|
await this.swarm.destroy();
|