mirror of
https://github.com/aljazceru/cyphernode.git
synced 2026-02-04 20:14:33 +01:00
conf_target wallet operations
This commit is contained in:
@@ -12,12 +12,14 @@ spend() {
|
||||
trace "[spend] address=${address}"
|
||||
local amount=$(echo "${request}" | jq -r ".amount" | awk '{ printf "%.8f", $0 }')
|
||||
trace "[spend] amount=${amount}"
|
||||
local conf_target=$(echo "${request}" | jq ".conf_target" | awk '{ printf "%d", $0 }')
|
||||
trace "[spend] conf_target=${conf_target}"
|
||||
local response
|
||||
local id_inserted
|
||||
local tx_details
|
||||
local tx_raw_details
|
||||
|
||||
response=$(send_to_spender_node "{\"method\":\"sendtoaddress\",\"params\":[\"${address}\",${amount}]}")
|
||||
response=$(send_to_spender_node "{\"method\":\"sendtoaddress\",\"params\":[\"${address}\",${amount},\"\",\"\",false,null,${conf_target}]}")
|
||||
local returncode=$?
|
||||
trace_rc ${returncode}
|
||||
trace "[spend] response=${response}"
|
||||
|
||||
Reference in New Issue
Block a user