Files
dragonx/src
dexX7 9c7167d1bc Return all available information via validateaddress
`"validateaddress"` omits some information, even in cases where is it available.

The primary motivation is to be able to retrieve redeemScripts, after using `"addmultisigaddress"`, when not all keys are available in the keystore, but the redeemScript actually is.

The output of `"validateaddress"` with this commit:

Keys not available:
```js
validateaddress "n4KWZKx349gdMQGgTnZ8W6WfgSwybkGSK3"
{
  "isvalid": true,
  "address": "n4KWZKx349gdMQGgTnZ8W6WfgSwybkGSK3",
  "scriptPubKey": "76a914fa20d564550b105787f7ce3a9ad7fd9a45cd407088ac",
  "ismine": false,
  "iswatchonly": false,
  "isscript": false
}
```
```js
validateaddress "2N2g2H7gjA8a11g1yKBgh5VTqndyvbnWpBK"
{
  "isvalid": true,
  "address": "2N2g2H7gjA8a11g1yKBgh5VTqndyvbnWpBK",
  "scriptPubKey": "a9146769c19a16c9400b908756e19a4d2afb9e9760e187",
  "ismine": false,
  "iswatchonly": false,
  "isscript": true
}
```

After adding the redeemScript:
```js
addmultisigaddress 2 '["02537357B156A33306A7A014A3748631C59DF405B56F11BA4AA4A3CE81501AF095","02F1FB200390E7864EF4450C07B15988179A57C3CF3A878F668E1070CB615749FE"]'
2N2g2H7gjA8a11g1yKBgh5VTqndyvbnWpBK

validateaddress "2N2g2H7gjA8a11g1yKBgh5VTqndyvbnWpBK"
{
  "isvalid": true,
  "address": "2N2g2H7gjA8a11g1yKBgh5VTqndyvbnWpBK",
  "scriptPubKey": "a9146769c19a16c9400b908756e19a4d2afb9e9760e187",
  "ismine": false,
  "iswatchonly": false,
  "isscript": true,
  "script": "multisig",
  "hex": "522102537357b156a33306a7a014a3748631c59df405b56f11ba4aa4a3ce81501af0952102f1fb200390e7864ef4450c07b15988179a57c3cf3a878f668e1070cb615749fe52ae",
  "addresses": [
    "n4KWZKx349gdMQGgTnZ8W6WfgSwybkGSK3",
    "mmSKNtbYYHRrhTLKiok5TuYrGEs4Y2A4k6"
  ],
  "sigsrequired": 2,
  "account": ""
}
```

All keys available:
```js
validateaddress "n4KWZKx349gdMQGgTnZ8W6WfgSwybkGSK3"
{
  "isvalid": true,
  "address": "n4KWZKx349gdMQGgTnZ8W6WfgSwybkGSK3",
  "scriptPubKey": "76a914fa20d564550b105787f7ce3a9ad7fd9a45cd407088ac",
  "ismine": true,
  "iswatchonly": false,
  "isscript": false,
  "pubkey": "02537357b156a33306a7a014a3748631c59df405b56f11ba4aa4a3ce81501af095",
  "iscompressed": true,
  "account": ""
}
```
```js
validateaddress "2N2g2H7gjA8a11g1yKBgh5VTqndyvbnWpBK"
{
  "isvalid": true,
  "address": "2N2g2H7gjA8a11g1yKBgh5VTqndyvbnWpBK",
  "scriptPubKey": "a9146769c19a16c9400b908756e19a4d2afb9e9760e187",
  "ismine": true,
  "iswatchonly": false,
  "isscript": true,
  "script": "multisig",
  "hex": "522102537357b156a33306a7a014a3748631c59df405b56f11ba4aa4a3ce81501af0952102f1fb200390e7864ef4450c07b15988179a57c3cf3a878f668e1070cb615749fe52ae",
  "addresses": [
    "n4KWZKx349gdMQGgTnZ8W6WfgSwybkGSK3",
    "mmSKNtbYYHRrhTLKiok5TuYrGEs4Y2A4k6"
  ],
  "sigsrequired": 2,
  "account": ""
}
```
2017-03-02 13:23:03 -08:00
..
2015-11-04 23:48:07 +01:00
2012-04-27 10:14:33 -04:00
2017-02-23 12:40:45 +00:00
2016-10-04 00:45:56 -07:00
2017-03-02 13:23:03 -08:00
2016-07-15 19:57:55 -07:00
2014-12-19 19:55:32 +01:00
2014-12-19 19:55:32 +01:00
2016-09-08 21:46:15 -07:00
2016-09-09 00:22:18 -06:00
2014-12-19 19:55:32 +01:00
2016-06-17 00:21:58 +12:00
2015-05-06 11:38:39 +02:00
2015-05-06 11:38:39 +02:00
2015-05-01 11:21:27 +00:00
2016-07-18 10:06:18 -06:00
2016-10-20 00:36:32 +01:00
2014-12-31 10:50:06 +01:00
2014-12-19 19:55:32 +01:00
2017-01-23 17:06:54 +01:00
2015-05-06 18:37:49 +02:00
2016-09-01 11:48:15 +12:00
2014-12-19 19:55:32 +01:00
2017-02-10 02:19:03 +00:00
2015-05-11 17:56:48 -07:00
2015-05-01 11:21:27 +00:00
2017-03-02 13:23:03 -08:00
2017-03-02 13:23:03 -08:00
2014-12-19 19:55:32 +01:00
2016-09-08 12:22:08 +12:00
2016-09-08 12:22:08 +12:00
2017-01-23 17:06:54 +01:00
2017-01-23 17:06:54 +01:00
2017-02-10 02:18:51 +00:00
2017-03-02 13:23:03 -08:00
2015-05-16 17:59:23 -04:00
2014-12-19 19:55:32 +01:00
2016-10-25 19:48:38 +01:00
2016-07-18 10:07:30 -06:00
2016-08-13 11:12:18 -04:00
2017-01-23 17:06:54 +01:00
2016-12-09 16:59:34 +13:00
2014-12-19 19:55:32 +01:00