Accepts "estimate" and "verbose" optional
boolean arguments. "estimate" defaults to
false. If set to true, it will ignore validating
the proof and return the proof that was collected.
The "verbose" option defaults to true, if set
to false it will return the proof in hex encoding
instead of JSON.
This commit adds the toString('hex') function to the following places:
- primitives -> txmeta -> getJSON()
- primitives -> tx -> format()
- node -> rpc -> getblockhash
In addition it adds a small test to txmeta-test to ensure that the getJSON function is working accordingly.
This PR updates the node rpc validateaddress to
better seperate the wallet and the node. The rpc
was returning ismine and iswatch only. These values
were moved to the wallet rpc method getaddressinfo.
This corresponds to a change in bitcoind and bcoin.
The updated validateaddress rpc returns the values:
- isvalid
- address
- ismine
- iswatchonly
- isscript
- isspendable
- witness_version
- witness_program
See PR in bcoin: https://github.com/bcoin-org/bcoin/pull/731
See PR in bitcoind: https://github.com/bitcoin/bitcoin/pull/10583
This commit accomplishes a few things:
- The emergency soft-fork safe guards and on-chain mitigations described in
#103 are implemented.
- Claimed names no longer expire within the reservation window, but are still
revokable.
- We now track the registered and expired state of a name.
- In addition to the above, we track the total number of renewals.
- We no longer clear name data on expiration.
- Change PoW to KMAC+BLAKE2b-256, remove Cuckoo Cycle.
- Change to a 10 minute block time (updates other constants,
including the halving interval).
- Add `filterRoot` to block header.
- Add a separate witnessRoot.
The last change fixes our original misdesigned segwit, which made syncing a
non-witness chain more difficult than it needed to be. The previous design
merkelized the transaction itself and there was only one merkle root, which was
essentially a witness root. This required "witness data hashes" to be requested
for each block in a non-witness sync. Using a separate tree is just a better
design in the end.