v0/getmempoolinfo added :-D

This commit is contained in:
aitorjs
2019-07-02 16:03:52 +02:00
committed by kexkey
parent 250e18d4c5
commit f3e1948ae9
5 changed files with 41 additions and 1 deletions

View File

@@ -81,4 +81,13 @@ get_blockchain_info()
local data='{"method":"getblockchaininfo"}'
send_to_watcher_node "${data}" | jq ".result"
return $?
}
}
get_mempool_info()
{
trace "Entering get_mempool_info()..."
local data='{"method":"getmempoolinfo"}'
send_to_watcher_node "${data}" | jq ".result"
return $?
}

View File

@@ -284,6 +284,13 @@ main()
response_to_client "${response}" ${?}
break
;;
getmempoolinfo)
# curl GET http://192.168.111.152:8080/getmempoolinfo
trace "trace: $(get_mempool_info)"
response=$(get_mempool_info "${line}")
response_to_client "${response}" ${?}
break
;;
ln_getinfo)
# GET http://192.168.111.152:8080/ln_getinfo