Skip to content

Commit 7ad0837

Browse files
committed
Include vout in listsinceblock and listtransactions output
1 parent 216e91f commit 7ad0837

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/bitcoinapi/bitcoinapi.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ int BitcoinAPI::StringToNumber (const string &text){
5555
return ss >> result ? result : 0;
5656
}
5757

58-
Value BitcoinAPI::sendcommand(const string& command, const Value& params){
58+
Value BitcoinAPI::sendcommand(const string& command, const Value& params){
5959
Value result;
6060

6161
try{
@@ -571,6 +571,7 @@ vector<transactioninfo_t> BitcoinAPI::listtransactions() {
571571

572572
tmp.time = val["time"].asInt();
573573
tmp.timereceived = val["timereceived"].asInt();
574+
tmp.vout = val["vout"].asInt();
574575

575576
ret.push_back(tmp);
576577
}
@@ -609,6 +610,7 @@ vector<transactioninfo_t> BitcoinAPI::listtransactions(const string& account, in
609610

610611
tmp.time = val["time"].asInt();
611612
tmp.timereceived = val["timereceived"].asInt();
613+
tmp.vout = val["vout"].asInt();
612614

613615
ret.push_back(tmp);
614616
}
@@ -1018,6 +1020,7 @@ txsinceblock_t BitcoinAPI::listsinceblock(const string& blockhash, int target_co
10181020

10191021
tmp.time = val["time"].asInt();
10201022
tmp.timereceived = val["timereceived"].asInt();
1023+
tmp.vout = val["vout"].asInt();
10211024

10221025
ret.transactions.push_back(tmp);
10231026
}

src/bitcoinapi/types.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
std::vector<std::string> walletconflicts;
8787
int time;
8888
int timereceived;
89+
int vout;
8990
};
9091

9192
struct multisig_t{

0 commit comments

Comments
 (0)