Commit Graph

593 Commits

Author SHA1 Message Date
Jonathan "Duke" Leto
0a9abedc5d Return size in bytes of a tx from getrawtransaction 2022-06-26 04:40:06 -07:00
Duke Leto
193a1b2a97 Clarify that it is OP_RETURN data 2022-04-20 10:52:12 -04:00
Duke Leto
69cd4f7990 data key (OP_RETURN) is optional in createrawtransaction 2022-04-20 10:51:12 -04:00
jahway603
9443cd1fa2 Merge branch 'dev' into dev 2022-03-18 16:55:22 +00:00
jahway603
04911ae966 Mention z_viewtransaction in gettransaction and getrawtransaction RPC calls 2022-03-18 12:12:40 -04:00
Duke Leto
ce5c8a54e4 Make it work correctly 2022-02-16 09:10:11 -05:00
Duke Leto
c8430665f7 WIP RPC that doesn't quite work yet 2022-02-15 11:26:50 -05:00
Duke Leto
d8481722ad Add time_remaining to listbanned output
Example output:

hush-cli listbanned
[
  {
    "address": "1.2.3.4/255.255.255.255",
    "banned_until": 1640921730,
    "time_remaining": 86395
  }
]
2021-12-29 22:36:02 -05:00
Duke Leto
cff8d114ea Fix rescan RPC to correctly use the optional rescan height 2021-12-21 20:55:29 -05:00
Duke Leto
fffa06d138 Fix UB in no Plaintext wallet.dat #85 2021-12-15 08:47:19 -05:00
Duke Leto
4f15626bb0 Cleanup 2021-09-16 14:24:27 -04:00
Duke Leto
f22cbbf1e2 Cleanup and remove dead code 2021-09-16 14:12:31 -04:00
Duke Leto
49713d8a04 Various things 2021-09-14 16:00:08 -04:00
Duke Leto
3d4123ee88 Cleanup 2021-09-03 12:35:59 -04:00
Duke Leto
4fecf72ec8 Remove dead code 2021-09-02 15:01:58 -04:00
Duke Leto
18339394b6 RPCs notaries, signmessage, decoderawtransaction and getnetworkinfo can now be called during RPC warmup 2021-09-02 12:29:52 -04:00
Duke Leto
b4cf845bf3 New listaddresses RPC and z_exportwallet RPC now can be called during RPC warmup 2021-09-02 12:22:04 -04:00
Duke Leto
59fbcbb541 . 2021-09-01 22:34:21 -04:00
Duke Leto
0c6e5945a6 Add listaddresses as a new replacement for getaddressesbyaccount; cleanup 2021-09-01 20:26:59 -04:00
Duke Leto
b30fae8238 clean up some more 2021-09-01 11:13:08 -04:00
Duke Leto
5c83c1b4e7 Cleanup 2021-09-01 11:02:19 -04:00
Duke Leto
120219d540 It is called getaddressesbyaccount, ugh 2021-09-01 10:36:23 -04:00
Duke Leto
e424a997a7 Cleanup 2021-08-26 00:08:37 -04:00
Duke Leto
ced3ba591d Fix coredump when running hush-cli during RPC warmup 2021-08-19 19:09:05 -04:00
Duke Leto
c2aa7bc353 Merge branch 'dev' into stratum 2021-08-09 11:54:55 -04:00
Duke Leto
63e1ede162 Also report work queue threads in rpcinfo 2021-08-09 11:51:25 -04:00
Duke Leto
236d79b3f8 Add rpcinfo rpc to debug deadlocks
We seem to have deadlock bugs in our RPC system, most likely inherited from ZEC or BTC.
Since some Hush RPC's take longer (such as anything with Sietch protections), the deadlocks
are more likely to occur. Eventually all RPC slots are used up and no more RPC commands
can be sent to hushd. This is why the "plz_stop" feature was implemented, but that is just
a workaround to restart the server. We must find and fix the root cause.

This rpc will allow us to see when we are getting close to our maximum work queue depth
and hopefully help us learn exactly what is happening.
2021-08-05 12:44:30 -04:00
Duke Leto
5a3f5b4152 . 2021-07-10 14:05:20 -04:00
Duke Leto
62adec08d8 Overwinter has always been active for HUSH + all HSCs 2021-07-10 03:46:05 -04:00
Duke Leto
30a6ca4447 Built-in stratum server 2021-07-09 18:47:15 -04:00
Duke Leto
2b915599ac Update rpc docs 2021-06-28 23:56:16 -04:00
Duke Leto
b7be25e2d5 Thanks to hellcatz for this patch 2021-06-26 14:42:40 -04:00
Duke Leto
e829822041 logging to help debug window stats being wrong after restart 2021-06-26 12:27:38 -04:00
Duke Leto
0d24faa39a Allow getpeerinfo during rpc warmup 2021-06-18 17:27:18 -04:00
Duke Leto
3796795566 Allow help, z_listaddresses, listaddresses, z_exportkey and dumpprivkey during RPC warmup 2021-05-19 12:04:04 -04:00
Duke Leto
860541d2e4 Show relay status in getpeerinfo 2021-05-04 12:25:12 -04:00
Duke Leto
4a536d62dc Update copyrights 2021-04-17 13:03:22 -04:00
Duke Leto
07931668cf Optionally filter balances by min value in z_getbalances 2021-04-14 20:15:11 -04:00
Duke Leto
52e14828c8 Basic z_getbalances working, but slow 2021-04-13 18:13:36 -04:00
Duke Leto
8ed3ced34f Log block height in AddToWallet 2021-02-24 12:02:43 -08:00
Duke Leto
48159bd650 Update network RPC docs 2021-02-08 08:56:10 -05:00
Duke Leto
000ef4ac91 Keeping HUSH on the down low 2021-01-27 13:39:27 -05:00
Duke Leto
cf57365698 Deletions and cleanups 2021-01-26 08:56:08 -05:00
Duke Leto
1488a03f1c Improved TLS error handling and teach getpeerinfo about cipher of each connection 2021-01-24 15:06:34 -05:00
Duke Leto
1f4c4f27e6 Refactoring 2021-01-24 08:51:17 -05:00
Duke Leto
482990936f Cleanup 2021-01-23 22:30:56 -05:00
Duke Leto
2e31b7d2dc lol 2021-01-23 22:18:57 -05:00
Duke Leto
cde6d33ad1 The term 'whitelist' is racist and so we choose to call this feature 'allowlist' 2021-01-10 10:46:22 -05:00
Duke Leto
d5477ab3ab Disable build_date for now, which causes race condition bugs in the build system 2021-01-07 15:57:34 -05:00
Duke Leto
e3a68dfdfb Hush is the extreme future, Komodo is the KYC past 2020-12-16 22:49:58 -05:00