Added getblockchaininfo endpoint

This commit is contained in:
SKP
2019-03-24 00:40:01 +01:00
committed by kexkey
parent 8b2136e1ef
commit a1052249e0
2 changed files with 14 additions and 0 deletions

View File

@@ -302,6 +302,11 @@ main()
serve_ots_getfile $(echo "${line}" | cut -d ' ' -f2 | cut -d '/' -f3)
break
;;
getblockchaininfo)
# http://192.168.111.152:8080/getblockchaininfo
response=$(get_blockchain_info)
response_to_client "${response}" ${?}
esac
break
fi