diff --git a/background/background.go b/background/background.go index 0f1fc2c..920e814 100644 --- a/background/background.go +++ b/background/background.go @@ -141,12 +141,6 @@ func (n *NotificationHandler) Notify(method string, params json.RawMessage) erro continue } for _, walletClient := range walletClients { - err = walletClient.AddTransaction(rawTicket.BlockHash, rawTicket.Hex) - if err != nil { - log.Errorf("AddTransaction error on dcrwallet '%s': %v", - walletClient.String(), err) - continue - } err = walletClient.ImportPrivKey(ticket.VotingWIF) if err != nil { log.Errorf("ImportPrivKey error on dcrwallet '%s': %v", @@ -154,6 +148,13 @@ func (n *NotificationHandler) Notify(method string, params json.RawMessage) erro continue } + err = walletClient.AddTransaction(rawTicket.BlockHash, rawTicket.Hex) + if err != nil { + log.Errorf("AddTransaction error on dcrwallet '%s': %v", + walletClient.String(), err) + continue + } + // Update vote choices on voting wallets. for agenda, choice := range ticket.VoteChoices { err = walletClient.SetVoteChoice(agenda, choice, ticket.Hash) diff --git a/webapi/templates/homepage.html b/webapi/templates/homepage.html index 84b10ce..bd1daa5 100644 --- a/webapi/templates/homepage.html +++ b/webapi/templates/homepage.html @@ -4,7 +4,7 @@ - dcrwages + vspd