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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +0 -12
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "trac-peer",
3
3
  "main": "src/index.js",
4
- "version": "0.1.69",
4
+ "version": "0.1.70",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "assert": "npm:bare-node-assert",
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();