Skip to content

Commit

Permalink
Add new unconfirmedReceived/Sent from bitcore-node/#376
Browse files Browse the repository at this point in the history
  • Loading branch information
STRML committed Jan 14, 2016
1 parent ea57755 commit 13e75fc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/addresses.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ AddressController.prototype.getAddressSummary = function(address, options, callb
totalSentSat: summary.totalSpent,
unconfirmedBalance: summary.unconfirmedBalance / 1e8,
unconfirmedBalanceSat: summary.unconfirmedBalance,
unconfirmedSent: summary.unconfirmedSpent / 1e8,
unconfirmedSentSat: summary.unconfirmedSpent,
unconfirmedReceived: summary.unconfirmedReceived / 1e8,
unconfirmedReceivedSat: summary.unconfirmedReceived,
unconfirmedTxApperances: summary.unconfirmedAppearances, // misspelling - ew
txApperances: summary.appearances, // yuck
transactions: summary.txids
Expand Down
6 changes: 6 additions & 0 deletions test/addresses.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ describe('Addresses', function() {
totalReceived: 2782729129,
totalSpent: 2782729129,
unconfirmedBalance: 0,
unconfirmedSpent: 0,
unconfirmedReceived: 0,
appearances: 2,
unconfirmedAppearances: 0,
txids: [
Expand Down Expand Up @@ -205,6 +207,10 @@ describe('Addresses', function() {
"totalSentSat": 2782729129,
"unconfirmedBalance": 0,
"unconfirmedBalanceSat": 0,
"unconfirmedSent": 0,
"unconfirmedSentSat": 0,
"unconfirmedReceived": 0,
"unconfirmedReceivedSat": 0,
"unconfirmedTxApperances": 0,
"txApperances": 2,
"transactions": [
Expand Down

0 comments on commit 13e75fc

Please sign in to comment.