diff --git a/jsoncmd_test.go b/jsoncmd_test.go index 6c74198b..f8206c16 100644 --- a/jsoncmd_test.go +++ b/jsoncmd_test.go @@ -135,6 +135,17 @@ var jsoncmdtests = []struct { HexTx: "thisisahexidecimaltransaction", }, }, + { + name: "basic decodescript", + f: func() (Cmd, error) { + return NewDecodeScriptCmd(float64(1), + "a bunch of hex") + }, + result: &DecodeScriptCmd{ + id: float64(1), + HexScript: "a bunch of hex", + }, + }, { name: "basic dumpprivkey", f: func() (Cmd, error) { @@ -955,17 +966,19 @@ var jsoncmdtests = []struct { HexBlock: "lotsofhex", }, }, - // { - // name: "submitblock with optional object", - // f: func() (Cmd, error) { - // return NewSubmitBlockCmd(float64(1), - // "lotsofhex", "otherstuff") - // }, - // result: &SubmitBlockCmd{ - // id: float64(1), - // HexBlock: "lotsofhex", - // }, - // }, + { + name: "submitblock with optional object", + f: func() (Cmd, error) { + return NewSubmitBlockCmd(float64(1), + "lotsofhex", + &SubmitBlockOptions{WorkId: "otherstuff"}) + }, + result: &SubmitBlockCmd{ + id: float64(1), + HexBlock: "lotsofhex", + Options: &SubmitBlockOptions{WorkId: "otherstuff"}, + }, + }, { name: "basic validateaddress", f: func() (Cmd, error) { diff --git a/test_coverage.txt b/test_coverage.txt index 829afc04..39690465 100644 --- a/test_coverage.txt +++ b/test_coverage.txt @@ -3,42 +3,43 @@ github.com/conformal/btcjson/jsonapi.go ReadResultCmd 100.00% (63/63) github.com/conformal/btcjson/jsonapi.go JSONToAmount 100.00% (15/15) github.com/conformal/btcjson/jsonapi.go JSONGetMethod 100.00% (14/14) github.com/conformal/btcjson/jsoncmd.go SendFromCmd.MarshalJSON 100.00% (8/8) -github.com/conformal/btcjson/jsonfxns.go MarshallAndSend 100.00% (7/7) github.com/conformal/btcjson/jsonfxns.go jsonRpcSend 100.00% (7/7) +github.com/conformal/btcjson/jsonfxns.go MarshallAndSend 100.00% (7/7) +github.com/conformal/btcjson/jsoncmd.go GetBalanceCmd.MarshalJSON 100.00% (6/6) +github.com/conformal/btcjson/jsoncmd.go GetNetworkHashPSCmd.MarshalJSON 100.00% (6/6) github.com/conformal/btcjson/jsoncmd.go VerifyChainCmd.MarshalJSON 100.00% (6/6) github.com/conformal/btcjson/jsonfxns.go GetRaw 100.00% (6/6) github.com/conformal/btcjson/jsoncmd.go SendToAddressCmd.MarshalJSON 100.00% (6/6) -github.com/conformal/btcjson/jsoncmd.go GetBalanceCmd.MarshalJSON 100.00% (6/6) -github.com/conformal/btcjson/jsoncmd.go GetNetworkHashPSCmd.MarshalJSON 100.00% (6/6) github.com/conformal/btcjson/jsoncmd.go MoveCmd.MarshalJSON 100.00% (6/6) github.com/conformal/btcjson/jsonapi.go jsonWithArgs 100.00% (5/5) github.com/conformal/btcjson/jsoncmd.go CreateRawTransactionCmd.MarshalJSON 100.00% (4/4) -github.com/conformal/btcjson/jsoncmd.go GetRawChangeAddressCmd.MarshalJSON 100.00% (4/4) github.com/conformal/btcjson/jsoncmd.go GetNewAddressCmd.MarshalJSON 100.00% (4/4) -github.com/conformal/btcjson/jsoncmd.go GetBlockTemplateCmd.MarshalJSON 100.00% (4/4) -github.com/conformal/btcjson/jsoncmd.go GetAddedNodeInfoCmd.MarshalJSON 100.00% (4/4) -github.com/conformal/btcjson/jsoncmd.go SetGenerateCmd.MarshalJSON 100.00% (4/4) github.com/conformal/btcjson/jsoncmd.go AddMultisigAddressCmd.MarshalJSON 100.00% (4/4) github.com/conformal/btcjson/jsoncmd.go HelpCmd.MarshalJSON 100.00% (4/4) +github.com/conformal/btcjson/jsoncmd.go GetRawChangeAddressCmd.MarshalJSON 100.00% (4/4) +github.com/conformal/btcjson/jsoncmd.go GetAddedNodeInfoCmd.MarshalJSON 100.00% (4/4) +github.com/conformal/btcjson/jsoncmd.go GetBlockTemplateCmd.MarshalJSON 100.00% (4/4) +github.com/conformal/btcjson/jsoncmd.go SetGenerateCmd.MarshalJSON 100.00% (4/4) +github.com/conformal/btcjson/jsoncmd.go SubmitBlockCmd.MarshalJSON 100.00% (4/4) github.com/conformal/btcjson/jsoncmd.go GetRawTransactionCmd.MarshalJSON 100.00% (4/4) github.com/conformal/btcjson/jsonapi.go IsValidIdType 100.00% (3/3) -github.com/conformal/btcjson/jsoncmd.go StopCmd.MarshalJSON 100.00% (2/2) -github.com/conformal/btcjson/jsoncmd.go PingCmd.MarshalJSON 100.00% (2/2) -github.com/conformal/btcjson/jsoncmd.go ValidateAddressCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go KeyPoolRefillCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go ImportWalletCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go GetWorkCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go WalletLockCmd.MarshalJSON 100.00% (2/2) github.com/conformal/btcjson/jsoncmd.go VerifyMessageCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go PingCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go WalletPassphraseChangeCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go ValidateAddressCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go StopCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go GetTxOutSetInfoCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go SetTxFeeCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go WalletPassphraseCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go SetAccountCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go GetTransactionCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go SendRawTransactionCmd.MarshalJSON 100.00% (2/2) github.com/conformal/btcjson/jsonapi.go CreateMessage 100.00% (2/2) github.com/conformal/btcjson/jsoncmd.go ListAddressGroupingsCmd.MarshalJSON 100.00% (2/2) -github.com/conformal/btcjson/jsoncmd.go KeyPoolRefillCmd.MarshalJSON 100.00% (2/2) -github.com/conformal/btcjson/jsoncmd.go WalletLockCmd.MarshalJSON 100.00% (2/2) -github.com/conformal/btcjson/jsoncmd.go ImportWalletCmd.MarshalJSON 100.00% (2/2) -github.com/conformal/btcjson/jsoncmd.go WalletPassphraseCmd.MarshalJSON 100.00% (2/2) -github.com/conformal/btcjson/jsoncmd.go GetTransactionCmd.MarshalJSON 100.00% (2/2) -github.com/conformal/btcjson/jsoncmd.go GetWorkCmd.MarshalJSON 100.00% (2/2) -github.com/conformal/btcjson/jsoncmd.go GetTxOutSetInfoCmd.MarshalJSON 100.00% (2/2) -github.com/conformal/btcjson/jsoncmd.go SetAccountCmd.MarshalJSON 100.00% (2/2) -github.com/conformal/btcjson/jsoncmd.go WalletPassphraseChangeCmd.MarshalJSON 100.00% (2/2) -github.com/conformal/btcjson/jsoncmd.go SetTxFeeCmd.MarshalJSON 100.00% (2/2) -github.com/conformal/btcjson/jsoncmd.go SendRawTransactionCmd.MarshalJSON 100.00% (2/2) github.com/conformal/btcjson/jsoncmd.go NewPingCmd 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go AddNodeCmd.MarshalJSON 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go NewBackupWalletCmd 100.00% (1/1) @@ -49,6 +50,8 @@ github.com/conformal/btcjson/jsoncmd.go NewCreateRawTransactionCmd 100.00% (1 github.com/conformal/btcjson/jsoncmd.go NewDecodeRawTransactionCmd 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go DecodeRawTransactionCmd.MarshalJSON 100.00% (1/1) github.com/conformal/btcjson/jsonapi.go Error.Error 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewDecodeScriptCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go DecodeScriptCmd.MarshalJSON 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go NewDumpPrivKeyCmd 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go DumpPrivKeyCmd.MarshalJSON 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go NewDumpWalletCmd 100.00% (1/1) @@ -103,40 +106,41 @@ github.com/conformal/btcjson/jsoncmd.go NewWalletLockCmd 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go NewWalletPassphraseCmd 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go NewWalletPassphraseChangeCmd 100.00% (1/1) github.com/conformal/btcjson/jsonapi.go CreateMessageWithId 96.18% (327/340) -github.com/conformal/btcjson/jsoncmd.go NewVerifyChainCmd 88.89% (8/9) github.com/conformal/btcjson/jsoncmd.go NewGetNetworkHashPSCmd 88.89% (8/9) -github.com/conformal/btcjson/jsoncmd.go NewAddMultisigAddressCmd 83.33% (5/6) -github.com/conformal/btcjson/jsoncmd.go GetReceivedByAddressCmd.MarshalJSON 83.33% (5/6) -github.com/conformal/btcjson/jsoncmd.go ImportPrivKeyCmd.MarshalJSON 83.33% (5/6) -github.com/conformal/btcjson/jsoncmd.go NewGetBlockTemplateCmd 83.33% (5/6) -github.com/conformal/btcjson/jsoncmd.go GetReceivedByAccountCmd.MarshalJSON 83.33% (5/6) -github.com/conformal/btcjson/jsoncmd.go NewGetRawChangeAddressCmd 83.33% (5/6) -github.com/conformal/btcjson/jsoncmd.go NewGetAddedNodeInfoCmd 83.33% (5/6) -github.com/conformal/btcjson/jsoncmd.go NewGetRawTransactionCmd 83.33% (5/6) +github.com/conformal/btcjson/jsoncmd.go NewVerifyChainCmd 88.89% (8/9) +github.com/conformal/btcjson/jsoncmd.go NewSubmitBlockCmd 83.33% (5/6) github.com/conformal/btcjson/jsoncmd.go NewSetGenerateCmd 83.33% (5/6) -github.com/conformal/btcjson/jsoncmd.go NewGetTxOutCmd 83.33% (5/6) -github.com/conformal/btcjson/jsoncmd.go NewListAccountsCmd 83.33% (5/6) -github.com/conformal/btcjson/jsoncmd.go NewHelpCmd 83.33% (5/6) +github.com/conformal/btcjson/jsoncmd.go ImportPrivKeyCmd.MarshalJSON 83.33% (5/6) github.com/conformal/btcjson/jsoncmd.go NewGetNewAddressCmd 83.33% (5/6) -github.com/conformal/btcjson/jsoncmd.go ParseMarshaledCmd 81.18% (69/85) +github.com/conformal/btcjson/jsoncmd.go GetReceivedByAccountCmd.MarshalJSON 83.33% (5/6) +github.com/conformal/btcjson/jsoncmd.go NewGetRawTransactionCmd 83.33% (5/6) +github.com/conformal/btcjson/jsoncmd.go GetReceivedByAddressCmd.MarshalJSON 83.33% (5/6) +github.com/conformal/btcjson/jsoncmd.go NewGetBlockTemplateCmd 83.33% (5/6) +github.com/conformal/btcjson/jsoncmd.go NewGetTxOutCmd 83.33% (5/6) +github.com/conformal/btcjson/jsoncmd.go NewGetRawChangeAddressCmd 83.33% (5/6) +github.com/conformal/btcjson/jsoncmd.go NewHelpCmd 83.33% (5/6) +github.com/conformal/btcjson/jsoncmd.go NewAddMultisigAddressCmd 83.33% (5/6) +github.com/conformal/btcjson/jsoncmd.go NewListAccountsCmd 83.33% (5/6) +github.com/conformal/btcjson/jsoncmd.go NewGetAddedNodeInfoCmd 83.33% (5/6) +github.com/conformal/btcjson/jsoncmd.go ParseMarshaledCmd 82.35% (70/85) github.com/conformal/btcjson/jsoncmd.go NewSendFromCmd 80.95% (17/21) -github.com/conformal/btcjson/jsoncmd.go NewGetReceivedByAccountCmd 80.00% (12/15) -github.com/conformal/btcjson/jsoncmd.go NewGetBalanceCmd 80.00% (12/15) github.com/conformal/btcjson/jsoncmd.go NewMoveCmd 80.00% (12/15) -github.com/conformal/btcjson/jsoncmd.go NewSendToAddressCmd 80.00% (12/15) +github.com/conformal/btcjson/jsoncmd.go NewGetReceivedByAccountCmd 80.00% (12/15) github.com/conformal/btcjson/jsoncmd.go NewGetReceivedByAddressCmd 80.00% (12/15) +github.com/conformal/btcjson/jsoncmd.go NewGetBalanceCmd 80.00% (12/15) +github.com/conformal/btcjson/jsoncmd.go NewSendToAddressCmd 80.00% (12/15) github.com/conformal/btcjson/jsoncmd.go GetBlockTemplateCmd.UnmarshalJSON 79.41% (27/34) github.com/conformal/btcjson/jsoncmd.go NewImportPrivKeyCmd 78.57% (11/14) +github.com/conformal/btcjson/jsoncmd.go SubmitBlockCmd.UnmarshalJSON 76.92% (20/26) +github.com/conformal/btcjson/jsoncmd.go VerifyChainCmd.UnmarshalJSON 76.19% (16/21) github.com/conformal/btcjson/jsoncmd.go GetNetworkHashPSCmd.UnmarshalJSON 76.19% (16/21) github.com/conformal/btcjson/jsoncmd.go GetBalanceCmd.UnmarshalJSON 76.19% (16/21) -github.com/conformal/btcjson/jsoncmd.go VerifyChainCmd.UnmarshalJSON 76.19% (16/21) github.com/conformal/btcjson/jsoncmd.go HelpCmd.UnmarshalJSON 75.00% (12/16) github.com/conformal/btcjson/jsoncmd.go GetNewAddressCmd.UnmarshalJSON 75.00% (12/16) github.com/conformal/btcjson/jsoncmd.go GetRawChangeAddressCmd.UnmarshalJSON 75.00% (12/16) -github.com/conformal/btcjson/jsoncmd.go SubmitBlockCmd.MarshalJSON 75.00% (3/4) -github.com/conformal/btcjson/jsoncmd.go ListAccountsCmd.MarshalJSON 75.00% (3/4) -github.com/conformal/btcjson/jsoncmd.go GetTxOutCmd.MarshalJSON 75.00% (3/4) github.com/conformal/btcjson/jsoncmd.go LockUnspentCmd.MarshalJSON 75.00% (3/4) +github.com/conformal/btcjson/jsoncmd.go GetTxOutCmd.MarshalJSON 75.00% (3/4) +github.com/conformal/btcjson/jsoncmd.go ListAccountsCmd.MarshalJSON 75.00% (3/4) github.com/conformal/btcjson/jsoncmd.go SendFromCmd.UnmarshalJSON 73.68% (28/38) github.com/conformal/btcjson/jsoncmd.go GetRawTransactionCmd.UnmarshalJSON 73.68% (14/19) github.com/conformal/btcjson/jsoncmd.go SetGenerateCmd.UnmarshalJSON 73.68% (14/19) @@ -147,120 +151,115 @@ github.com/conformal/btcjson/jsoncmd.go MoveCmd.UnmarshalJSON 72.73% (24/33) github.com/conformal/btcjson/jsoncmd.go GetAddedNodeInfoCmd.UnmarshalJSON 72.22% (13/18) github.com/conformal/btcjson/jsoncmd.go CreateRawTransactionCmd.UnmarshalJSON 71.74% (33/46) github.com/conformal/btcjson/jsoncmd.go CreateMultisigCmd.UnmarshalJSON 71.43% (15/21) -github.com/conformal/btcjson/jsoncmd.go StopCmd.UnmarshalJSON 70.00% (7/10) -github.com/conformal/btcjson/jsoncmd.go GetDifficultyCmd.UnmarshalJSON 70.00% (7/10) -github.com/conformal/btcjson/jsoncmd.go PingCmd.UnmarshalJSON 70.00% (7/10) -github.com/conformal/btcjson/jsoncmd.go WalletLockCmd.UnmarshalJSON 70.00% (7/10) -github.com/conformal/btcjson/jsoncmd.go GetPeerInfoCmd.UnmarshalJSON 70.00% (7/10) -github.com/conformal/btcjson/jsoncmd.go GetInfoCmd.UnmarshalJSON 70.00% (7/10) github.com/conformal/btcjson/jsoncmd.go GetGenerateCmd.UnmarshalJSON 70.00% (7/10) -github.com/conformal/btcjson/jsoncmd.go ListAddressGroupingsCmd.UnmarshalJSON 70.00% (7/10) -github.com/conformal/btcjson/jsoncmd.go GetNetTotalsCmd.UnmarshalJSON 70.00% (7/10) -github.com/conformal/btcjson/jsoncmd.go GetHashesPerSecCmd.UnmarshalJSON 70.00% (7/10) -github.com/conformal/btcjson/jsoncmd.go GetTxOutSetInfoCmd.UnmarshalJSON 70.00% (7/10) -github.com/conformal/btcjson/jsoncmd.go GetConnectionCountCmd.UnmarshalJSON 70.00% (7/10) -github.com/conformal/btcjson/jsoncmd.go GetBlockCountCmd.UnmarshalJSON 70.00% (7/10) github.com/conformal/btcjson/jsoncmd.go GetBestBlockHashCmd.UnmarshalJSON 70.00% (7/10) github.com/conformal/btcjson/jsoncmd.go GetMiningInfoCmd.UnmarshalJSON 70.00% (7/10) +github.com/conformal/btcjson/jsoncmd.go PingCmd.UnmarshalJSON 70.00% (7/10) +github.com/conformal/btcjson/jsoncmd.go StopCmd.UnmarshalJSON 70.00% (7/10) +github.com/conformal/btcjson/jsoncmd.go WalletLockCmd.UnmarshalJSON 70.00% (7/10) +github.com/conformal/btcjson/jsoncmd.go GetTxOutSetInfoCmd.UnmarshalJSON 70.00% (7/10) +github.com/conformal/btcjson/jsoncmd.go GetNetTotalsCmd.UnmarshalJSON 70.00% (7/10) +github.com/conformal/btcjson/jsoncmd.go GetPeerInfoCmd.UnmarshalJSON 70.00% (7/10) github.com/conformal/btcjson/jsoncmd.go KeyPoolRefillCmd.UnmarshalJSON 70.00% (7/10) +github.com/conformal/btcjson/jsoncmd.go GetHashesPerSecCmd.UnmarshalJSON 70.00% (7/10) +github.com/conformal/btcjson/jsoncmd.go GetBlockCountCmd.UnmarshalJSON 70.00% (7/10) +github.com/conformal/btcjson/jsoncmd.go GetDifficultyCmd.UnmarshalJSON 70.00% (7/10) +github.com/conformal/btcjson/jsoncmd.go GetInfoCmd.UnmarshalJSON 70.00% (7/10) +github.com/conformal/btcjson/jsoncmd.go GetConnectionCountCmd.UnmarshalJSON 70.00% (7/10) +github.com/conformal/btcjson/jsoncmd.go ListAddressGroupingsCmd.UnmarshalJSON 70.00% (7/10) github.com/conformal/btcjson/jsoncmd.go GetRawMempoolCmd.UnmarshalJSON 70.00% (7/10) -github.com/conformal/btcjson/jsoncmd.go GetAddressesByAccountCmd.UnmarshalJSON 69.23% (9/13) -github.com/conformal/btcjson/jsoncmd.go DecodeRawTransactionCmd.UnmarshalJSON 69.23% (9/13) +github.com/conformal/btcjson/jsoncmd.go DecodeScriptCmd.UnmarshalJSON 69.23% (9/13) github.com/conformal/btcjson/jsoncmd.go GetBlockHashCmd.UnmarshalJSON 69.23% (9/13) -github.com/conformal/btcjson/jsoncmd.go DumpWalletCmd.UnmarshalJSON 69.23% (9/13) -github.com/conformal/btcjson/jsoncmd.go EncryptWalletCmd.UnmarshalJSON 69.23% (9/13) github.com/conformal/btcjson/jsoncmd.go GetTransactionCmd.UnmarshalJSON 69.23% (9/13) github.com/conformal/btcjson/jsoncmd.go SendRawTransactionCmd.UnmarshalJSON 69.23% (9/13) github.com/conformal/btcjson/jsoncmd.go ValidateAddressCmd.UnmarshalJSON 69.23% (9/13) -github.com/conformal/btcjson/jsoncmd.go DumpPrivKeyCmd.UnmarshalJSON 69.23% (9/13) -github.com/conformal/btcjson/jsoncmd.go BackupWalletCmd.UnmarshalJSON 69.23% (9/13) github.com/conformal/btcjson/jsoncmd.go ImportWalletCmd.UnmarshalJSON 69.23% (9/13) -github.com/conformal/btcjson/jsoncmd.go GetBlockCmd.UnmarshalJSON 69.23% (9/13) +github.com/conformal/btcjson/jsoncmd.go DumpPrivKeyCmd.UnmarshalJSON 69.23% (9/13) +github.com/conformal/btcjson/jsoncmd.go DumpWalletCmd.UnmarshalJSON 69.23% (9/13) +github.com/conformal/btcjson/jsoncmd.go BackupWalletCmd.UnmarshalJSON 69.23% (9/13) +github.com/conformal/btcjson/jsoncmd.go EncryptWalletCmd.UnmarshalJSON 69.23% (9/13) github.com/conformal/btcjson/jsoncmd.go GetAccountCmd.UnmarshalJSON 69.23% (9/13) github.com/conformal/btcjson/jsoncmd.go GetAccountAddressCmd.UnmarshalJSON 69.23% (9/13) -github.com/conformal/btcjson/jsoncmd.go AddNodeCmd.UnmarshalJSON 68.75% (11/16) +github.com/conformal/btcjson/jsoncmd.go GetAddressesByAccountCmd.UnmarshalJSON 69.23% (9/13) +github.com/conformal/btcjson/jsoncmd.go DecodeRawTransactionCmd.UnmarshalJSON 69.23% (9/13) +github.com/conformal/btcjson/jsoncmd.go GetBlockCmd.UnmarshalJSON 69.23% (9/13) github.com/conformal/btcjson/jsoncmd.go SetAccountCmd.UnmarshalJSON 68.75% (11/16) -github.com/conformal/btcjson/jsoncmd.go WalletPassphraseChangeCmd.UnmarshalJSON 68.75% (11/16) -github.com/conformal/btcjson/jsoncmd.go SetTxFeeCmd.UnmarshalJSON 68.75% (11/16) github.com/conformal/btcjson/jsoncmd.go WalletPassphraseCmd.UnmarshalJSON 68.75% (11/16) +github.com/conformal/btcjson/jsoncmd.go SetTxFeeCmd.UnmarshalJSON 68.75% (11/16) +github.com/conformal/btcjson/jsoncmd.go WalletPassphraseChangeCmd.UnmarshalJSON 68.75% (11/16) +github.com/conformal/btcjson/jsoncmd.go AddNodeCmd.UnmarshalJSON 68.75% (11/16) github.com/conformal/btcjson/jsoncmd.go VerifyMessageCmd.UnmarshalJSON 68.42% (13/19) github.com/conformal/btcjson/jsoncmd.go NewLockUnspentCmd 66.67% (4/6) github.com/conformal/btcjson/jsoncmd.go NewAddNodeCmd 66.67% (2/3) github.com/conformal/btcjson/jsoncmd.go ImportPrivKeyCmd.UnmarshalJSON 62.50% (15/24) github.com/conformal/btcjson/jsoncmd.go SignRawTransactionCmd.MarshalJSON 62.50% (5/8) -github.com/conformal/btcjson/jsoncmd.go GetReceivedByAddressCmd.UnmarshalJSON 61.90% (13/21) github.com/conformal/btcjson/jsoncmd.go GetReceivedByAccountCmd.UnmarshalJSON 61.90% (13/21) +github.com/conformal/btcjson/jsoncmd.go GetReceivedByAddressCmd.UnmarshalJSON 61.90% (13/21) github.com/conformal/btcjson/jsonapi.go RpcCommand 61.54% (8/13) github.com/conformal/btcjson/jsoncmd.go GetTxOutCmd.UnmarshalJSON 59.09% (13/22) github.com/conformal/btcjson/jsoncmd.go ListAccountsCmd.UnmarshalJSON 56.25% (9/16) github.com/conformal/btcjson/jsonapi.go RpcRawCommand 53.33% (8/15) -github.com/conformal/btcjson/jsoncmd.go NewSubmitBlockCmd 50.00% (3/6) -github.com/conformal/btcjson/jsoncmd.go SubmitBlockCmd.UnmarshalJSON 42.31% (11/26) github.com/conformal/btcjson/jsoncmd.go NewSignRawTransactionCmd 38.10% (8/21) github.com/conformal/btcjson/jsoncmd.go LockUnspentCmd.UnmarshalJSON 30.56% (11/36) github.com/conformal/btcjson/jsoncmd.go SignRawTransactionCmd.UnmarshalJSON 22.03% (13/59) github.com/conformal/btcjson/jsoncmd.go SendManyCmd.UnmarshalJSON 0.00% (0/33) github.com/conformal/btcjson/jsoncmd.go ListTransactionsCmd.UnmarshalJSON 0.00% (0/26) -github.com/conformal/btcjson/jsoncmd.go ListUnspentCmd.UnmarshalJSON 0.00% (0/21) github.com/conformal/btcjson/jsoncmd.go NewListTransactionsCmd 0.00% (0/21) -github.com/conformal/btcjson/jsoncmd.go ListSinceBlockCmd.UnmarshalJSON 0.00% (0/21) +github.com/conformal/btcjson/jsoncmd.go ListUnspentCmd.UnmarshalJSON 0.00% (0/21) github.com/conformal/btcjson/jsoncmd.go ListReceivedByAccountCmd.UnmarshalJSON 0.00% (0/21) +github.com/conformal/btcjson/jsoncmd.go ListSinceBlockCmd.UnmarshalJSON 0.00% (0/21) github.com/conformal/btcjson/jsoncmd.go ListReceivedByAddressCmd.UnmarshalJSON 0.00% (0/21) github.com/conformal/btcjson/jsoncmd.go SignMessageCmd.UnmarshalJSON 0.00% (0/16) -github.com/conformal/btcjson/jsoncmd.go NewListReceivedByAccountCmd 0.00% (0/15) github.com/conformal/btcjson/jsoncmd.go NewListSinceBlockCmd 0.00% (0/15) -github.com/conformal/btcjson/jsoncmd.go NewSendManyCmd 0.00% (0/15) github.com/conformal/btcjson/jsoncmd.go NewListReceivedByAddressCmd 0.00% (0/15) -github.com/conformal/btcjson/jsoncmd.go DecodeScriptCmd.UnmarshalJSON 0.00% (0/13) +github.com/conformal/btcjson/jsoncmd.go NewListReceivedByAccountCmd 0.00% (0/15) +github.com/conformal/btcjson/jsoncmd.go NewSendManyCmd 0.00% (0/15) github.com/conformal/btcjson/jsoncmd.go ListLockUnspentCmd.UnmarshalJSON 0.00% (0/10) github.com/conformal/btcjson/jsoncmd.go SendManyCmd.MarshalJSON 0.00% (0/9) github.com/conformal/btcjson/jsoncmd.go NewListUnspentCmd 0.00% (0/9) github.com/conformal/btcjson/jsoncmd.go ListTransactionsCmd.MarshalJSON 0.00% (0/8) +github.com/conformal/btcjson/jsoncmd.go ListUnspentCmd.MarshalJSON 0.00% (0/6) +github.com/conformal/btcjson/jsoncmd.go ListSinceBlockCmd.MarshalJSON 0.00% (0/6) github.com/conformal/btcjson/jsoncmd.go unparsableCmd.UnmarshalJSON 0.00% (0/6) github.com/conformal/btcjson/jsoncmd.go ListReceivedByAddressCmd.MarshalJSON 0.00% (0/6) -github.com/conformal/btcjson/jsoncmd.go ListSinceBlockCmd.MarshalJSON 0.00% (0/6) github.com/conformal/btcjson/jsoncmd.go ListReceivedByAccountCmd.MarshalJSON 0.00% (0/6) -github.com/conformal/btcjson/jsoncmd.go ListUnspentCmd.MarshalJSON 0.00% (0/6) github.com/conformal/btcjson/jsoncmd.go SignMessageCmd.MarshalJSON 0.00% (0/2) -github.com/conformal/btcjson/jsoncmd.go ListLockUnspentCmd.MarshalJSON 0.00% (0/2) github.com/conformal/btcjson/jsoncmd.go unparsableCmd.MarshalJSON 0.00% (0/2) -github.com/conformal/btcjson/jsoncmd.go DumpPrivKeyCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go DumpPrivKeyCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go SignMessageCmd.Id 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go ListLockUnspentCmd.MarshalJSON 0.00% (0/2) github.com/conformal/btcjson/jsoncmd.go SignMessageCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go DumpWalletCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go DumpWalletCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go EncryptWalletCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go EncryptWalletCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go GetAccountCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetAccountCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go SignRawTransactionCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetAccountAddressCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetAccountAddressCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetAddedNodeInfoCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetAddedNodeInfoCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go DecodeScriptCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go DumpPrivKeyCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go WalletPassphraseChangeCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetAddressesByAccountCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetAddressesByAccountCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go StopCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetBalanceCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetBalanceCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go DecodeScriptCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetBestBlockHashCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetBestBlockHashCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go StopCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetBlockCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetBlockCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go VerifyChainCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go ListAddressGroupingsCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go GetBlockCountCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetBlockCountCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go SubmitBlockCmd.Id 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go BackupWalletCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go SubmitBlockCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetBlockHashCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetBlockHashCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetBlockTemplateCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetBlockTemplateCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go NewDecodeScriptCmd 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go DecodeScriptCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetConnectionCountCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetConnectionCountCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go ValidateAddressCmd.Id 0.00% (0/1) @@ -273,8 +272,8 @@ github.com/conformal/btcjson/jsoncmd.go GetGenerateCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetHashesPerSecCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetHashesPerSecCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go VerifyChainCmd.Id 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go VerifyChainCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetInfoCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetInfoCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go unparsableCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetMiningInfoCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetMiningInfoCmd.Method 0.00% (0/1) @@ -284,22 +283,22 @@ github.com/conformal/btcjson/jsoncmd.go GetNetTotalsCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go VerifyMessageCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetNetworkHashPSCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetNetworkHashPSCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go DecodeRawTransactionCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go DecodeScriptCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetNewAddressCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetNewAddressCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go DecodeRawTransactionCmd.Id 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go DecodeRawTransactionCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go newUnparsableCmd 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetPeerInfoCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetPeerInfoCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetRawChangeAddressCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetRawChangeAddressCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetBlockCountCmd.Id 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go DecodeRawTransactionCmd.Id 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go GetInfoCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetRawMempoolCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetRawMempoolCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go WalletLockCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetRawTransactionCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetRawTransactionCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go CreateRawTransactionCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetReceivedByAccountCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetReceivedByAccountCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go WalletLockCmd.Method 0.00% (0/1) @@ -307,31 +306,31 @@ github.com/conformal/btcjson/jsoncmd.go GetReceivedByAddressCmd.Id 0.00% (0/1 github.com/conformal/btcjson/jsoncmd.go GetReceivedByAddressCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetTransactionCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetTransactionCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go CreateRawTransactionCmd.Id 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go CreateRawTransactionCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetTxOutCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetTxOutCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetTxOutSetInfoCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetTxOutSetInfoCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go CreateRawTransactionCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetWorkCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go GetWorkCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go CreateMultisigCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go HelpCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go HelpCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go CreateMultisigCmd.Id 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go CreateMultisigCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go ImportPrivKeyCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go ImportPrivKeyCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go WalletPassphraseCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go ImportWalletCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go ImportWalletCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go CreateMultisigCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go WalletPassphraseCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go KeyPoolRefillCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go KeyPoolRefillCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go BackupWalletCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go ListAccountsCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go ListAccountsCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go RegisterCustomCmd 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go ListAddressGroupingsCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go BackupWalletCmd.Id 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go ListAddressGroupingsCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go NewListLockUnspentCmd 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go ListLockUnspentCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go ListLockUnspentCmd.Method 0.00% (0/1) @@ -349,30 +348,31 @@ github.com/conformal/btcjson/jsoncmd.go LockUnspentCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go LockUnspentCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go MoveCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go MoveCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go BackupWalletCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go SignRawTransactionCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go PingCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go PingCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go AddNodeCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go SendFromCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go SendFromCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go AddNodeCmd.Id 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go AddNodeCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go SendManyCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go SendManyCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go SendRawTransactionCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go SendRawTransactionCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go AddNodeCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go SendToAddressCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go SendToAddressCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetAccountCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go SetAccountCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go SetAccountCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go AddMultisigAddressCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go SetGenerateCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go SetGenerateCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go AddMultisigAddressCmd.Id 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go AddMultisigAddressCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go WalletPassphraseChangeCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go SetTxFeeCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go SetTxFeeCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go DecodeScriptCmd.MarshalJSON 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go AddMultisigAddressCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go NewSignMessageCmd 0.00% (0/1) -github.com/conformal/btcjson --------------------------------------- 63.13% (1635/2590) +github.com/conformal/btcjson/jsoncmd.go DumpPrivKeyCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go SignMessageCmd.Id 0.00% (0/1) +github.com/conformal/btcjson --------------------------------------- 64.05% (1659/2590)