Skip to content

Commit 6e32e04

Browse files
fix: use signrawtransactionwithwallet (#947)
1 parent b07b875 commit 6e32e04

File tree

5 files changed

+11
-12
lines changed

5 files changed

+11
-12
lines changed

docker-compose.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ services:
5252
-rpcuser=bitcoinrpcuser
5353
-rpcpassword=bitcoinrpcpassword
5454
-rpcallowip=::/0
55-
-deprecatedrpc=signrawtransaction
5655

5756
bitcoind-2:
5857
image: ruimarinho/bitcoin-core:0.17.0
@@ -70,7 +69,6 @@ services:
7069
-rpcuser=bitcoinrpcuser
7170
-rpcpassword=bitcoinrpcpassword
7271
-rpcallowip=::/0
73-
-deprecatedrpc=signrawtransaction
7472

7573
k6:
7674
build:

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"dependencies": {
5757
"@po.et/poet-js": "5.1.17",
5858
"amqplib": "0.5.3",
59-
"bitcoin-core": "2.0.0",
59+
"bitcoin-core": "2.2.0",
6060
"bs58": "4.0.1",
6161
"form-data": "2.3.3",
6262
"ipfs-http-client": "28.1.0",

src/BlockchainWriter/Controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export class Controller {
180180
'Got fundedTransaction from Bitcoin Core',
181181
)
182182

183-
const signedTransaction = await bitcoinCore.signRawTransaction(fundedTransaction.hex)
183+
const signedTransaction = await bitcoinCore.signRawTransactionWithWallet(fundedTransaction.hex)
184184

185185
logger.trace(
186186
{

typings/bitcoin-core.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ declare module 'bitcoin-core' {
6060
fundRawTransaction(hexstring: string, options?: FundRawTransactionOptions): Promise<FundRawTransactionResponse>
6161
setNetworkActive(flag: boolean): Promise<void>
6262
signRawTransaction(hexstring: string): Promise<SignRawTransactionResponse>
63+
signRawTransactionWithWallet(hexstring: string): Promise<SignRawTransactionResponse>
6364
sendRawTransaction(hexstring: string): Promise<string>
6465
estimateSmartFee(blocks: number): Promise<EstimateSmartFeeResponse>
6566
}

0 commit comments

Comments
 (0)