aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-06-09Return all available information via validateaddressdexX7
`"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": "" } ```
2015-06-09Merge pull request #6249Wladimir J. van der Laan
cab580d gitian: Add petertodd to gitian download scripts (Peter Todd)
2015-06-09Merge pull request #6250Wladimir J. van der Laan
789b7c3 gitian-downloader: Add prab's key (Paul Rabahy)
2015-06-07gitian-downloader: Add prab's keyPaul Rabahy
2015-06-07gitian: Add petertodd to gitian download scriptsPeter Todd
2015-06-06Merge pull request #6241Wladimir J. van der Laan
c946ebe fix util_tests.cpp clang warnings (Jonas Schnelli)
2015-06-06Merge pull request #6232Wladimir J. van der Laan
f053bd2 Add erkmos OpenPGP key to gitian downloader keyset (Erik Mossberg)
2015-06-06fix util_tests.cpp clang warningsJonas Schnelli
was introduced with #6121
2015-06-05Merge pull request #6152Wladimir J. van der Laan
08d9373 Remove unused code from wallet and validation interface (Michael Ford)
2015-06-05Merge pull request #6238Wladimir J. van der Laan
cfc600d Bugfix: Correct links for Xcode download (Luke Dashjr)
2015-06-05Merge pull request #6206Wladimir J. van der Laan
a9ac95c use const references where appropriate (Philip Kaufmann)
2015-06-05Merge pull request #6234Wladimir J. van der Laan
ef5fca8 fix rpcmining/getblocktemplate univalue transition logic error (Jonas Schnelli)
2015-06-05Bugfix: Correct links for Xcode downloadLuke Dashjr
2015-06-04fix rpcmining/getblocktemplate univalue transition logic errorJonas Schnelli
2015-06-04use const references where appropriatePhilip Kaufmann
2015-06-04Merge pull request #6121Wladimir J. van der Laan
44c7474 univalue: add type check unit tests (Jonas Schnelli) c023092 univalue: add strict type checking (Wladimir J. van der Laan) 7e98a3c util: Add ParseInt64 and ParseDouble functions (Wladimir J. van der Laan) 043df2b Simplify RPCclient, adapt json_parse_error test (Wladimir J. van der Laan) 519eede fix univalue json parse tests (Jonas Schnelli) c7fbbc7 fix missing univalue types during constructing (Jonas Schnelli) 8f7e4ab fix rpc batching univalue issue (Jonas Schnelli) 9a8897f Remove JSON Spirit wrapper, remove JSON Spirit leftovers (Jonas Schnelli) 3df0411 remove JSON Spirit UniValue wrapper (Jonas Schnelli) 1f263c8 fix rpc unit test, plain numbers are not JSON compatible object (Jonas Schnelli) e04d9c2 univalue: correct bool support (Jonas Schnelli) 0c5b2cf univalue: add support for real, fix percision and make it json_spirit compatible (Jonas Schnelli) 21c10de special threatment for null,true,false because they are non valid json (Jonas Schnelli) 6c7bee0 expicit set UniValue type to avoid empty values (Jonas Schnelli) 53b4671 extend conversion to UniValue (Jonas Schnelli) 15982a8 Convert tree to using univalue. Eliminate all json_spirit uses. (Jeff Garzik) 5e3060c UniValue: export NullUniValue global constant (Jeff Garzik) efc7883 UniValue: prefer .size() to .count(), to harmonize w/ existing tree (Jeff Garzik)
2015-06-04univalue: add type check unit testsJonas Schnelli
2015-06-04univalue: add strict type checkingWladimir J. van der Laan
2015-06-04util: Add ParseInt64 and ParseDouble functionsWladimir J. van der Laan
Strict parsing functions for other numeric types. - ParseInt64 analogous to ParseInt32, but for 64-bit values. - ParseDouble for doubles. - Make all three Parse* functions more strict (e.g. reject whitespace on the inside) Also add tests.
2015-06-04Simplify RPCclient, adapt json_parse_error testWladimir J. van der Laan
# Conflicts: # src/test/rpc_tests.cpp
2015-06-04Add erkmos OpenPGP key to gitian downloader keysetErik Mossberg
2015-06-04fix univalue json parse testsJonas Schnelli
2015-06-04fix missing univalue types during constructingJonas Schnelli
2015-06-04fix rpc batching univalue issueJonas Schnelli
2015-06-04Remove JSON Spirit wrapper, remove JSON Spirit leftoversJonas Schnelli
- implement find_value() function for UniValue - replace all Array/Value/Object types with UniValues, remove JSON Spirit to UniValue wrapper - remove JSON Spirit sources
2015-06-04remove JSON Spirit UniValue wrapperJonas Schnelli
2015-06-04fix rpc unit test, plain numbers are not JSON compatible objectJonas Schnelli
UniValues read() does only read valid json.
2015-06-04univalue: correct bool supportJonas Schnelli
2015-06-04univalue: add support for real, fix percision and make it json_spirit compatibleJonas Schnelli
- avoid breaking the API because of different number/percision handling
2015-06-04special threatment for null,true,false because they are non valid jsonJonas Schnelli
2015-06-04expicit set UniValue type to avoid empty valuesJonas Schnelli
2015-06-04extend conversion to UniValueJonas Schnelli
2015-06-04Convert tree to using univalue. Eliminate all json_spirit uses.Jeff Garzik
2015-06-04UniValue: export NullUniValue global constantJeff Garzik
2015-06-04UniValue: prefer .size() to .count(), to harmonize w/ existing treeJeff Garzik
2015-06-03Merge pull request #6220Wladimir J. van der Laan
d648236 bump version in clientversion.h (Philip Kaufmann)
2015-06-03Merge pull request #5875Wladimir J. van der Laan
aa8c827 P2P regression test for new AcceptBlock behavior (Suhas Daftuar) 9be0e68 Be stricter in processing unrequested blocks (Suhas Daftuar)
2015-06-03Merge pull request #6218Wladimir J. van der Laan
960e994 gitian: Bump cache dir for current master (Cory Fields) be65628 gitian: bump faketime to something more recent (Cory Fields) c3cdd7b osx: set min version to 10.7 for 0.11+ (Cory Fields)
2015-06-03Merge pull request #6226Wladimir J. van der Laan
4e157fc json: fail read_string if string contains trailing garbage (Wladimir J. van der Laan)
2015-06-03Merge pull request #6214Wladimir J. van der Laan
0a32a93 OSX: use "Bitcoin Core" as Bundle Display Name (Jonas Schnelli) a2241ea [OSX] revert renaming of Bitcoin-Qt.app (Jonas Schnelli)
2015-06-03json: fail read_string if string contains trailing garbageWladimir J. van der Laan
Change `read_string` to fail when not the entire input has been consumed. This avoids unexpected, even dangerous behavior (fixes #6223). The new JSON parser adapted in #6121 also solves this problem so in master this is a temporary fix, but should be backported to older releases. Also adds tests for the new behavior.
2015-06-03OSX: use "Bitcoin Core" as Bundle Display NameJonas Schnelli
2015-06-02P2P regression test for new AcceptBlock behaviorSuhas Daftuar
2015-06-02Be stricter in processing unrequested blocksSuhas Daftuar
AcceptBlock will no longer process an unrequested block, unless it has not been previously processed and has more work than chainActive.Tip()
2015-06-02bump version in clientversion.hPhilip Kaufmann
2015-06-02gitian: Bump cache dir for current masterCory Fields
Do not backport.
2015-06-02gitian: bump faketime to something more recentCory Fields
This helps in file views where binaries are sorted by time
2015-06-02osx: set min version to 10.7 for 0.11+Cory Fields
2015-06-02Merge pull request #6203Wladimir J. van der Laan
d449772 Remove P2SH coinbase flag, no longer interesting (Luke Dashjr)
2015-06-02Merge pull request #6210Wladimir J. van der Laan
7fd5b80 build: disable optional use of gmp in internal secp256k1 build (Wladimir J. van der Laan)