Skip to content

Commit

Permalink
add prioritise transaction action
Browse files Browse the repository at this point in the history
  • Loading branch information
BitcoinMechanic committed Oct 11, 2024
1 parent b4099bf commit 2faaf3c
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
12 changes: 12 additions & 0 deletions actions/prioritise-transaction.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

set -e

cat > input.json
TXID=$(jq -r '.["txid"]' input.json)
FEE_DELTA=$(jq -r '.["fee-delta"]' input.json)
rm input.json

bitcoin-cli prioritisetransaction $TXID $FEE_DELTA

echo "Transaction prioritised with fee $FEE_DELTA"
31 changes: 31 additions & 0 deletions manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,37 @@ actions:
- stopped
implementation:
type: script
prioritise-transaction:
name: "Prioritise Transaction"
description: "Ensure a transaction gets prioritised in generated templates."
allowed-statuses:
- running
- stopped
implementation:
type: docker
image: main
system: false
entrypoint: prioritise-transaction.sh
args: []
io-format: json
mounts:
main: /root/.bitcoin
input-spec:
txid:
type: string
name: TXID
description: "The transaction ID of the transaction you wish to prioritise."
masked: false
placeholder: ""
nullable: false
fee-delta:
type: string
name: Fee-Delta
description: "The effective fee rate you wish your Bitcoin node to treat this transaction as having."
masked: true
placeholder: ""
nullable: false
default: ""
migrations:
from:
"*":
Expand Down

0 comments on commit 2faaf3c

Please sign in to comment.