mirror of
https://github.com/aljazceru/cyphernode.git
synced 2025-12-19 13:44:53 +01:00
blockheight should be an integer in json response (#169)
This commit is contained in:
@@ -16,8 +16,8 @@ newblock() {
|
|||||||
local blockheight
|
local blockheight
|
||||||
blockheight=$(echo ${blockinfo} | jq -r ".result.height")
|
blockheight=$(echo ${blockinfo} | jq -r ".result.height")
|
||||||
|
|
||||||
trace "[newblock] mosquitto_pub -h broker -t newblock -m \"{\"blockhash\":\"${blockhash}\",\"blockheight\":\"${blockheight}\"}\""
|
trace "[newblock] mosquitto_pub -h broker -t newblock -m \"{\"blockhash\":\"${blockhash}\",\"blockheight\":${blockheight}}\""
|
||||||
response=$(mosquitto_pub -h broker -t newblock -m "{\"blockhash\":\"${blockhash}\",\"blockheight\":\"${blockheight}\"}")
|
response=$(mosquitto_pub -h broker -t newblock -m "{\"blockhash\":\"${blockhash}\",\"blockheight\":${blockheight}}")
|
||||||
returncode=$?
|
returncode=$?
|
||||||
trace_rc ${returncode}
|
trace_rc ${returncode}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user