Skip to content

Commit e5a715a

Browse files
committed
patch 0.3.7
1 parent 9ecd7ce commit e5a715a

4 files changed

Lines changed: 12 additions & 4 deletions

File tree

dist/bitcoinfiles.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -995,6 +995,8 @@ class BfpNetwork {
995995
if(this.isMonitoringPayment || this.stopPayMonitor)
996996
return;
997997

998+
this.isMonitoringPayment = true;
999+
9981000
// must be a cash or legacy addr
9991001
if(!this.BITBOX.Address.isCashAddress(paymentAddress) && !this.BITBOX.Address.isLegacyAddress(paymentAddress))
10001002
throw new Error("Not an a valid address format, must be cashAddr or Legacy address format.");
@@ -1009,8 +1011,10 @@ class BfpNetwork {
10091011
console.log(ex);
10101012
}
10111013

1012-
if(this.stopPayMonitor)
1014+
if(this.stopPayMonitor) {
1015+
this.isMonitoringPayment = false;
10131016
return;
1017+
}
10141018

10151019
await sleep(2000);
10161020
}

dist/bitcoinfiles.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/network.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ class BfpNetwork {
8080
if(this.isMonitoringPayment || this.stopPayMonitor)
8181
return;
8282

83+
this.isMonitoringPayment = true;
84+
8385
// must be a cash or legacy addr
8486
if(!this.BITBOX.Address.isCashAddress(paymentAddress) && !this.BITBOX.Address.isLegacyAddress(paymentAddress))
8587
throw new Error("Not an a valid address format, must be cashAddr or Legacy address format.");
@@ -94,8 +96,10 @@ class BfpNetwork {
9496
console.log(ex);
9597
}
9698

97-
if(this.stopPayMonitor)
99+
if(this.stopPayMonitor) {
100+
this.isMonitoringPayment = false;
98101
return;
102+
}
99103

100104
await sleep(2000);
101105
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bitcoinfiles",
3-
"version": "0.3.7",
3+
"version": "0.3.8",
44
"description": "Upload and Download files to Bitcoin Cash blockchain",
55
"main": "index.js",
66
"files": [

0 commit comments

Comments
 (0)