mirror of
https://github.com/aljazceru/cyphernode.git
synced 2026-02-21 20:14:35 +01:00
Small fixes in removefrombatch and watchtxid
This commit is contained in:
@@ -264,7 +264,8 @@ removefrombatch() {
|
||||
trace "[removefrombatch] id missing"
|
||||
response='{"result":null,"error":{"code":-32700,"message":"outputId is required","data":'${request}'}}'
|
||||
else
|
||||
batcher_id=$(sql "SELECT batcher_id FROM recipient WHERE id=${id}")
|
||||
# We don't want to remove an already spent output
|
||||
batcher_id=$(sql "SELECT batcher_id FROM recipient WHERE id=${id} AND tx_id IS NULL")
|
||||
returncode=$?
|
||||
trace_rc ${returncode}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user