Skip to content

Commit bd0f589

Browse files
committed
Include vout in listsinceblock and listtransactions output
1 parent 73e09d0 commit bd0f589

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
@@ -44,7 +44,7 @@ BitcoinAPI::~BitcoinAPI()
4444
delete httpClient;
4545
}
4646

47-
Value BitcoinAPI::sendcommand(const string& command, const Value& params){
47+
Value BitcoinAPI::sendcommand(const string& command, const Value& params){
4848
Value result;
4949

5050
try{
@@ -576,6 +576,7 @@ vector<transactioninfo_t> BitcoinAPI::listtransactions() {
576576

577577
tmp.time = val["time"].asInt();
578578
tmp.timereceived = val["timereceived"].asInt();
579+
tmp.vout = val["vout"].asInt();
579580

580581
ret.push_back(tmp);
581582
}
@@ -614,6 +615,7 @@ vector<transactioninfo_t> BitcoinAPI::listtransactions(const string& account, in
614615

615616
tmp.time = val["time"].asInt();
616617
tmp.timereceived = val["timereceived"].asInt();
618+
tmp.vout = val["vout"].asInt();
617619

618620
ret.push_back(tmp);
619621
}
@@ -1023,6 +1025,7 @@ txsinceblock_t BitcoinAPI::listsinceblock(const string& blockhash, int target_co
10231025

10241026
tmp.time = val["time"].asInt();
10251027
tmp.timereceived = val["timereceived"].asInt();
1028+
tmp.vout = val["vout"].asInt();
10261029

10271030
ret.transactions.push_back(tmp);
10281031
}

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)