aboutsummaryrefslogtreecommitdiffstats
path: root/signer/rules/rules.go
diff options
context:
space:
mode:
authorMartin Holst Swende <martin@swende.se>2018-09-28 18:47:57 +0800
committerGitHub <noreply@github.com>2018-09-28 18:47:57 +0800
commitdcaabfe7f6f38577c11a475b81ab9584ef61a4a5 (patch)
tree773d4ae6d97ca4badbb697cb286ff6ab6497cb9d /signer/rules/rules.go
parent2c110c81ee92290d3e5ce6134a065c8d2abfbb60 (diff)
downloadgo-tangerine-dcaabfe7f6f38577c11a475b81ab9584ef61a4a5.tar
go-tangerine-dcaabfe7f6f38577c11a475b81ab9584ef61a4a5.tar.gz
go-tangerine-dcaabfe7f6f38577c11a475b81ab9584ef61a4a5.tar.bz2
go-tangerine-dcaabfe7f6f38577c11a475b81ab9584ef61a4a5.tar.lz
go-tangerine-dcaabfe7f6f38577c11a475b81ab9584ef61a4a5.tar.xz
go-tangerine-dcaabfe7f6f38577c11a475b81ab9584ef61a4a5.tar.zst
go-tangerine-dcaabfe7f6f38577c11a475b81ab9584ef61a4a5.zip
Clef: USB hw wallet support (#17756)
* signer: implement USB interaction with hw wallets * signer: fix failing testcases
Diffstat (limited to 'signer/rules/rules.go')
-rw-r--r--signer/rules/rules.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/signer/rules/rules.go b/signer/rules/rules.go
index 711e2ddde..07c34db22 100644
--- a/signer/rules/rules.go
+++ b/signer/rules/rules.go
@@ -194,6 +194,11 @@ func (r *rulesetUI) ApproveImport(request *core.ImportRequest) (core.ImportRespo
return r.next.ApproveImport(request)
}
+// OnInputRequired not handled by rules
+func (r *rulesetUI) OnInputRequired(info core.UserInputRequest) (core.UserInputResponse, error) {
+ return r.next.OnInputRequired(info)
+}
+
func (r *rulesetUI) ApproveListing(request *core.ListRequest) (core.ListResponse, error) {
jsonreq, err := json.Marshal(request)
approved, err := r.checkApproval("ApproveListing", jsonreq, err)
@@ -222,6 +227,7 @@ func (r *rulesetUI) ShowInfo(message string) {
log.Info(message)
r.next.ShowInfo(message)
}
+
func (r *rulesetUI) OnSignerStartup(info core.StartupInfo) {
jsonInfo, err := json.Marshal(info)
if err != nil {