trac-peer 0.1.88 → 0.1.89
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 +13 -15
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -646,22 +646,20 @@ export class Peer extends ReadyResource {
|
|
|
646
646
|
const msb_tx = await view_session.get(tx);
|
|
647
647
|
await view_session.close();
|
|
648
648
|
if(null !== msb_tx){
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
} catch(e) { console.log(e) }
|
|
649
|
+
if(this.protocol_instance.prepared_transactions_content[tx].dispatch.type !== undefined &&
|
|
650
|
+
this.protocol_instance.prepared_transactions_content[tx].dispatch.type !== 'p'){
|
|
651
|
+
const _this = this;
|
|
652
|
+
async function push(){
|
|
653
|
+
await _this.sleep(10_000 + (backoff * 250));
|
|
654
|
+
try{
|
|
655
|
+
await _this.protocol_instance.broadcastTransaction(_this.msb.getNetwork().validator,{
|
|
656
|
+
type : 'p',
|
|
657
|
+
value : ''
|
|
658
|
+
});
|
|
659
|
+
} catch(e) { }
|
|
660
|
+
}
|
|
661
|
+
push();
|
|
663
662
|
}
|
|
664
|
-
push();
|
|
665
663
|
const _tx = {};
|
|
666
664
|
_tx['msbsl'] = msbsl;
|
|
667
665
|
_tx['dispatch'] = this.protocol_instance.prepared_transactions_content[tx].dispatch;
|