dcrd/internal
Dave Collins 715aa0c77b
rpcserver/netsync: Remove notifystakedifficulty.
This removes support from the RPC server for the notifystakedifficulty
and related stakedifficulty notification.

This is being done because it really is not necessary, as evidenced by
the fact that nothing actually uses it, and as further described below.

The only time the stake difficulty can change is when there is a new
block that falls on a well defined interval, so all clients already know
when it can possibly change and can make use of getstakedifficulty at
the appropriate times if they really need access to it.

Moreover, since the activation of DCP0001, it became possible to
independently calculate the stake difficulty from the headers alone, so
SPV clients that don't rely on RPC, such as wallets, already calculate
it themselves anyway.

In practice, wallets would be the only realistic potential consumer for
such a notification, but for the aforementioned reasons, they really
have no need for it.

Finally, I noticed that the current code was not even notifying under
all of the correct circumstances.  So, rather than fixing and
maintaining a bunch of code that isn't particularly useful, it's better
to just remove it.
2020-12-28 18:26:54 -06:00
..
fees fees: Remove deprecated DisableLog. 2020-12-28 13:13:47 -06:00
limits multi: replace godoc.org with pkg.go.dev 2020-02-18 19:35:19 -06:00
mempool multi: update error code related documentation. 2020-12-21 13:00:59 -06:00
mining mining: Correct fee calculations during reorgs. 2020-12-27 15:18:41 -06:00
netsync rpcserver/netsync: Remove notifystakedifficulty. 2020-12-28 18:26:54 -06:00
progresslog progresslog: Add package documentation. 2020-12-14 19:20:07 -06:00
rpcserver rpcserver/netsync: Remove notifystakedifficulty. 2020-12-28 18:26:54 -06:00
version release: Bump for 1.7 release cycle. 2020-10-15 16:30:33 -05:00