mirror of
https://github.com/aljazceru/cyphernode.git
synced 2026-01-26 07:44:43 +01:00
Working version of the async pub/sub notifier for callbacks
This commit is contained in:
@@ -56,15 +56,21 @@ get_rawtransaction()
|
||||
return $?
|
||||
}
|
||||
|
||||
get_transaction()
|
||||
{
|
||||
get_transaction() {
|
||||
trace "Entering get_transaction()..."
|
||||
|
||||
local txid=${1}
|
||||
trace "[get_transaction] txid=${txid}"
|
||||
local to_spender_node=${2}
|
||||
trace "[get_transaction] to_spender_node=${to_spender_node}"
|
||||
|
||||
local data="{\"method\":\"gettransaction\",\"params\":[\"${txid}\",true]}"
|
||||
trace "[get_transaction] data=${data}"
|
||||
send_to_watcher_node "${data}"
|
||||
if [ -z "${to_spender_node}" ]; then
|
||||
send_to_watcher_node "${data}"
|
||||
else
|
||||
send_to_spender_node "${data}"
|
||||
fi
|
||||
return $?
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user