#337 - fix importmulti function
This commit is contained in:
parent
0e5d599fdd
commit
cc7f7fc103
1 changed files with 3 additions and 3 deletions
|
|
@ -606,13 +606,13 @@ void bitcoin_rpc_client::importmulti(const std::vector<multi_params> &address_or
|
||||||
for (const auto ¶m : address_or_script_array) {
|
for (const auto ¶m : address_or_script_array) {
|
||||||
argument_1 += "{\"scriptPubKey\": ";
|
argument_1 += "{\"scriptPubKey\": ";
|
||||||
if (param.type == multi_type::address) {
|
if (param.type == multi_type::address) {
|
||||||
argument_1 += "{\"address\": \"" + param.address_or_script + "\"}";
|
argument_1 += "{\"address\": \"" + param.address_or_script + "\"}, \"label\": \"" + param.label + "\"";
|
||||||
} else if (param.type == multi_type::script) {
|
} else if (param.type == multi_type::script) {
|
||||||
argument_1 += "\"" + param.address_or_script + "\"";
|
argument_1 += "\"" + param.address_or_script + "\", \"internal\": true";
|
||||||
} else {
|
} else {
|
||||||
FC_THROW("Invalid multi_type.");
|
FC_THROW("Invalid multi_type.");
|
||||||
}
|
}
|
||||||
argument_1 += ", \"label\": \"" + param.label + "\", \"timestamp\": " + std::to_string(fc::time_point_sec::from_iso_string("2022-01-01T00:00:00").sec_since_epoch()) + "}";
|
argument_1 += ", \"timestamp\": " + std::to_string(fc::time_point_sec::from_iso_string("2022-01-01T00:00:00").sec_since_epoch()) + "}";
|
||||||
|
|
||||||
//! Note
|
//! Note
|
||||||
/* Creation time of the key expressed in UNIX epoch time,
|
/* Creation time of the key expressed in UNIX epoch time,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue