Commit graph

100 commits

Author SHA1 Message Date
Matthew Zipkin
940f463259
Merge PR #451 'tynes/rpc-resetrootcache' 2020-08-04 10:39:19 -04:00
Mark Tyneway
c649d9ede6
rpc: resetrootcache 2020-08-03 13:33:49 -07:00
Boyma
22be7faa37
Merge pull request #448 from tynes/getrawtransaction-address-fix
node/rpc: addrToJSON include bech32 string
2020-05-25 17:59:55 -04:00
Mark Tyneway
60da1f87ae
node/rpc: addrToJSON include bech32 string 2020-05-08 11:41:27 -07:00
Mark Tyneway
6e6804329e
node/rpc: getdnssecproof
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.
2020-04-30 11:27:32 -07:00
Boyma
4178fd3c86
Merge pull request #426 from kilpatty/rpc-get-block-add-extra-nonce
rpc: add extra_nonce to block's JSON.
2020-04-19 15:19:45 -04:00
Mark Tyneway
cdeb5d0994
node/rpc: add validateresource
This new node RPC will verify Resource json.
It will be useful for users who are having trouble
building the correct Resource.
2020-04-17 18:15:28 -07:00
kilpatty
44bd1bf06d
rpc: add extra_nonce to header's JSON. 2020-04-16 14:44:57 -05:00
kilpatty
9bdbadba46
rpc: add extra_nonce to block's JSON. 2020-04-15 07:12:13 -05:00
Boyma
3db8bf8b6a
Merge pull request #321 from tynes/block-rpc-fixes
node/rpc: getblock confirmation fixes
2020-03-31 15:23:06 -04:00
Boyma
ed53f5f885
Merge pull request #254 from tynes/expose-service-names
http: expose human readable service names
2020-03-26 15:22:18 -04:00
Christopher Jeffrey
5a322b725b
rpc: add "type" option to getpeerinfo. 2020-03-19 17:05:42 -07:00
Christopher Jeffrey
25d499dcc6
net: seperate regular address and brontide address. fix options parsing. 2020-03-05 10:34:20 -08:00
Christopher Jeffrey
f1231f7a2e
node/rpc: s/treeRoot/treeroot/ 2020-03-02 06:26:42 -08:00
Christopher Jeffrey
8f4f5fa730
node/rpc: fix raw output for getblockheader. fixes #373. 2020-03-02 06:21:45 -08:00
Matthew Zipkin
3fce45c1a9
chain: get BIP9 statistics 2020-02-19 14:05:16 -05:00
Matthew Zipkin
12a7a8337d
node: fix logger format for block hashes 2020-02-10 09:51:54 -05:00
Christopher Jeffrey
b80cd1fb1f
rpc: disable airdrops on testnet. 2020-02-01 22:18:44 -08:00
Christopher Jeffrey
4cb36cbe40
net: fix port selection elsewhere. 2020-02-01 15:12:40 -08:00
Christopher Jeffrey
77dbe2987c
node/rpc: do not activate softforks with getwork. 2020-01-29 05:44:51 -08:00
Christopher Jeffrey
a72bab62a0
dns: implement new resource serialization. 2020-01-29 02:16:13 -08:00
Christopher Jeffrey
a333a24d40
net: use plaintext by default. various improvements. 2020-01-29 02:01:32 -08:00
Christopher Jeffrey
0623f4df05
Revert "Merge pull request #331 from tynes/p2p-brontide-safety"
This reverts commit 340952867a, reversing
changes made to e2039e8954.
2020-01-29 01:58:18 -08:00
Boyma
2a13e12c45
Merge pull request #327 from tynes/rpc-warning-fix
node/rpc: fix logger statement
2020-01-26 17:32:31 -08:00
Mark Tyneway
f0225319c1
node/rpc: fix logger statement 2020-01-25 20:13:01 -08:00
Mark Tyneway
d5cfb7887b
p2p: standard and brontide peering
Separate the brontide and plaintext servers
so that peers can network over either.
2020-01-25 20:00:00 -08:00
Mark Tyneway
4413c25637
node/rpc: return hex for block bits 2019-12-31 17:34:32 -08:00
Mark Tyneway
4469e50a75
node/rpc: fix block to json 2019-12-31 17:33:16 -08:00
Mark Tyneway
97471f93aa
node/rpc: header to json fixes 2019-12-31 17:30:37 -08:00
Christopher Jeffrey
e68b77b8c8
block: cleanup new pow/header serialization. 2019-11-04 03:57:19 -08:00
Christopher Jeffrey
5a34dd6633
chain/block/mining: implement a more foolproof pow (WIP). 2019-11-04 03:57:19 -08:00
Mark Tyneway
2c2d6711ac
rpc: return name 2019-10-09 13:59:35 -07:00
Mark Tyneway
5a61c110a1
node rpc: expose human readable service names 2019-09-25 14:16:17 -07:00
Mark Tyneway
6cf947f017
node/rpc: getnetworkinfo identity key
Return a new value in the response of
the node RPC `getnetworkinfo` that
contains the local identity key
serialized in base32.
2019-05-24 18:00:47 -07:00
Mark Tyneway
2ec26c1605
node/rpc: add treeRoot to getblockchaininfo 2019-05-03 22:05:39 -07:00
kilpatty
9d33191cc0
txmeta: return hex string for block for 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.
2019-04-25 11:33:35 -05:00
Mark Tyneway
62b4de584c rpc: update node rpc validateaddress
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
2019-04-08 17:33:30 -07:00
Christopher Jeffrey
9762b29922
covenants: implement mass name revocation safeguards. see #103.
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.
2019-04-01 06:25:40 -07:00
Christopher Jeffrey
13ae3f1d0f
rpc: expose airdrops for block templates. 2019-01-21 22:06:26 -08:00
Christopher Jeffrey
40157aa468
hsd: several hard-forks.
- 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.
2019-01-21 22:06:25 -08:00
Christopher Jeffrey
daf38ea4dd
airdrop: first attempt at airdrop proofs. 2018-12-02 15:56:50 -08:00
Christopher Jeffrey
ee20997321
deps: upgrade to modern bns and bcrypto. 2018-09-29 14:51:22 -07:00
Christopher Jeffrey
9cd21308b3
chain/net: fix initial block sync. 2018-08-07 22:22:15 -07:00
Christopher Jeffrey
a77ed0b46b
rpc: stop using for-await. 2018-08-07 13:48:57 -07:00
Christopher Jeffrey
999a1c2f54
node/wallet: improve name rpc calls. 2018-08-04 14:33:39 -07:00
Christopher Jeffrey
771c8d42aa
pkg: rename btc->ui. 2018-08-01 20:34:21 -07:00
Christopher Jeffrey
a03fcd1a23
pkg: rename to hsd. 2018-08-01 20:00:09 -07:00
Christopher Jeffrey
b8fb76e813
covenants: rename auction to namestate. 2018-07-31 19:54:40 -07:00
Christopher Jeffrey
13d2197b76
covenants: store all name state in the urkel tree. 2018-07-31 19:04:06 -07:00
Christopher Jeffrey
169da98147
pkg: update deps. remove build. 2018-07-19 05:40:48 -07:00