feat: RegisterAllActions now wires all 36 actions including HSD+DNS
Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
parent
c843d74f6d
commit
9266856cb5
2 changed files with 4 additions and 2 deletions
|
|
@ -392,12 +392,14 @@ func RegisterForgeActions(c *core.Core) {
|
|||
// RegisterAllActions registers every blockchain action with Core.
|
||||
//
|
||||
// blockchain.RegisterAllActions(c, chain)
|
||||
func RegisterAllActions(c *core.Core, ch *chain.Chain) {
|
||||
func RegisterAllActions(c *core.Core, ch *chain.Chain, hsdURL, hsdKey string) {
|
||||
RegisterActions(c, ch)
|
||||
RegisterWalletActions(c)
|
||||
RegisterCryptoActions(c)
|
||||
RegisterAssetActions(c)
|
||||
RegisterForgeActions(c)
|
||||
RegisterHSDActions(c, hsdURL, hsdKey)
|
||||
RegisterDNSActions(c, ch, hsdURL, hsdKey)
|
||||
}
|
||||
|
||||
// RegisterHSDActions registers sidechain query actions.
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ func TestAction_AssetDeploy_Bad(t *testing.T) {
|
|||
|
||||
func TestAction_RegisterAll_Good(t *testing.T) {
|
||||
c := core.New()
|
||||
RegisterAllActions(c, nil)
|
||||
RegisterAllActions(c, nil, "", "")
|
||||
// Verify actions exist
|
||||
if !c.Action("blockchain.chain.height").Exists() { t.Error("chain.height not registered") }
|
||||
if !c.Action("blockchain.wallet.create").Exists() { t.Error("wallet.create not registered") }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue