trac-peer 0.1.87 → 0.1.88
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 +1 -3
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -646,7 +646,6 @@ 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
649
|
const _this = this;
|
|
651
650
|
async function push(){
|
|
652
651
|
await _this.sleep(10_000 + (backoff * 250));
|
|
@@ -654,7 +653,7 @@ export class Peer extends ReadyResource {
|
|
|
654
653
|
const nonce = _this.protocol_instance.generateNonce();
|
|
655
654
|
const signature = { dispatch : {
|
|
656
655
|
type : 'setNick',
|
|
657
|
-
nick: _this.protocol_instance.api.getNick(_this.wallet.publicKey),
|
|
656
|
+
nick: await _this.protocol_instance.api.getNick(_this.wallet.publicKey),
|
|
658
657
|
address : _this.wallet.publicKey,
|
|
659
658
|
initiator: _this.wallet.publicKey
|
|
660
659
|
}};
|
|
@@ -663,7 +662,6 @@ export class Peer extends ReadyResource {
|
|
|
663
662
|
} catch(e) { console.log(e) }
|
|
664
663
|
}
|
|
665
664
|
push();
|
|
666
|
-
|
|
667
665
|
const _tx = {};
|
|
668
666
|
_tx['msbsl'] = msbsl;
|
|
669
667
|
_tx['dispatch'] = this.protocol_instance.prepared_transactions_content[tx].dispatch;
|