Fixes an issue where passing an address as the blockArg would get the blockhash for the parsed integer of the address. `parseInt` would parse the address as an integer and then get the block hash for 1. A regular expression now checks that the string is numeric with only 0-9 and the length is less than 40, the size of a ripemd160, and also less than the length of a sha256 hash. |
||
|---|---|---|
| .. | ||
| bitcoind.unit.js | ||
| web.unit.js | ||