differentiate change addresses from regular addresses
This commit is contained in:
parent
de5772112f
commit
6e2ade54bc
2 changed files with 64 additions and 27 deletions
|
|
@ -1990,7 +1990,6 @@ describe('Wallet model', function() {
|
|||
w.getTransactionHistory(function(err, res) {
|
||||
res.should.exist;
|
||||
res.length.should.equal(3);
|
||||
console.log('res', res);
|
||||
res[0].action.should.equal('sent');
|
||||
res[0].amountSat.should.equal(900);
|
||||
res[1].action.should.equal('received');
|
||||
|
|
@ -2030,7 +2029,8 @@ describe('Wallet model', function() {
|
|||
}, {
|
||||
addressStr: 'addr_in_2'
|
||||
}, {
|
||||
addressStr: 'change'
|
||||
addressStr: 'change',
|
||||
isChange: true,
|
||||
}]);
|
||||
|
||||
w.getTransactionHistory(function(err, res) {
|
||||
|
|
@ -2070,7 +2070,8 @@ describe('Wallet model', function() {
|
|||
}, {
|
||||
addressStr: 'addr_2'
|
||||
}, {
|
||||
addressStr: 'change'
|
||||
addressStr: 'change',
|
||||
isChange: true,
|
||||
}]);
|
||||
|
||||
w.getTransactionHistory(function(err, res) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue