jsonrpc/types: Add missing Method type to vars.
This adds a missing Method type declaration to the "work" and "tspend" notification method names. This allows importing both v2 and v3 versions of this package without running into RPC command registration errors.
This commit is contained in:
parent
aae4e07cf0
commit
48762d6f3c
@ -24,11 +24,11 @@ const (
|
||||
|
||||
// WorkNtfnMethod is the method used for notifications from
|
||||
// the chain server that a new block template has been generated.
|
||||
WorkNtfnMethod = "work"
|
||||
WorkNtfnMethod Method = "work"
|
||||
|
||||
// TSpendNtfnMethod is the method used for notifications from the chain
|
||||
// server that a new tspend has arrived in the mempool.
|
||||
TSpendNtfnMethod = "tspend"
|
||||
TSpendNtfnMethod Method = "tspend"
|
||||
|
||||
// ReorganizationNtfnMethod is the method used for notifications that the
|
||||
// block chain is in the process of a reorganization.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user