From 1555124c8513557e484dc3cec7a30ce9b204ae91 Mon Sep 17 00:00:00 2001 From: David Hill Date: Wed, 6 May 2015 09:50:23 -0400 Subject: [PATCH] Add additional fields to the SignRawTransaction RPC result. This mimics Bitcoin Core commit 8ac2a4e1788426329b842eea7121b8eac7875c76 --- btcjson/walletsvrresults.go | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/btcjson/walletsvrresults.go b/btcjson/walletsvrresults.go index d62f73f0..88574473 100644 --- a/btcjson/walletsvrresults.go +++ b/btcjson/walletsvrresults.go @@ -115,11 +115,22 @@ type ListUnspentResult struct { Confirmations int64 `json:"confirmations"` } +// SignRawTransactionError models the data that contains script verification +// errors from the signrawtransaction request. +type SignRawTransactionError struct { + TxID string `json:"txid"` + Vout uint32 `json:"vout"` + ScriptSig string `json:"hex"` + Sequence uint32 `json:"sequence"` + Error string `json:"error"` +} + // SignRawTransactionResult models the data from the signrawtransaction // command. type SignRawTransactionResult struct { - Hex string `json:"hex"` - Complete bool `json:"complete"` + Hex string `json:"hex"` + Complete bool `json:"complete"` + Errors []SignRawTransactionResult `json:"errors,omitempty"` } // ValidateAddressWalletResult models the data returned by the wallet server