#337 lock/unlock importmulti #673
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) {
|
||||
argument_1 += "{\"scriptPubKey\": ";
|
||||
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) {
|
||||
argument_1 += "\"" + param.address_or_script + "\"";
|
||||
argument_1 += "\"" + param.address_or_script + "\", \"internal\": true";
|
||||
} else {
|
||||
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
|
||||
/* Creation time of the key expressed in UNIX epoch time,
|
||||
|
|
|
|||
Loading…
Reference in a new issue