Skip to content

Commit

Permalink
Get transaction method changed for getrawtransaction
Browse files Browse the repository at this point in the history
  • Loading branch information
bridgedragon committed Mar 2, 2022
1 parent 78b679d commit b160596
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Connector/btc/apirpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def getTransactionHex(id, params, config):
rawTransaction = RPCConnector.request(
endpoint=config.bitcoincoreRpcEndpoint,
id=id,
method=GET_TRANSACTION_METHOD,
method=GET_RAW_TRANSACTION_METHOD,
params=[params["txHash"]]
)

Expand Down Expand Up @@ -396,7 +396,7 @@ def getTransaction(id, params, config):
transaction = RPCConnector.request(
endpoint=config.bitcoincoreRpcEndpoint,
id=id,
method=GET_TRANSACTION_METHOD,
method=GET_RAW_TRANSACTION_METHOD,
params=[
params["txHash"],
True
Expand Down
2 changes: 1 addition & 1 deletion Connector/btc/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
GET_BLOCK_HASH_METHOD = "getblockhash"
GET_BLOCK_COUNT_METHOD = "getblockcount"
ESTIMATE_SMART_FEE_METHOD = "estimatesmartfee"
GET_TRANSACTION_METHOD = "gettransaction"
GET_RAW_TRANSACTION_METHOD = "getrawtransaction"
DECODE_RAW_TRANSACTION_METHOD = "decoderawtransaction"
SEND_RAW_TRANSACTION_METHOD = "sendrawtransaction"
NOTIFY_METHOD = "notify"
Expand Down

0 comments on commit b160596

Please sign in to comment.