From ea82d184bfb12d06ad25218d2bc5eca72ce1255b Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 13 Feb 2018 20:51:06 -0800 Subject: [PATCH] waddrmgr: remove additional addressType values In this commit, we remove the extra addressType values as this will no longer be needed due to the new abstraction of scoped key managers. --- waddrmgr/db.go | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/waddrmgr/db.go b/waddrmgr/db.go index dc0ae6a..017c2fe 100644 --- a/waddrmgr/db.go +++ b/waddrmgr/db.go @@ -53,8 +53,8 @@ type syncStatus uint8 // These constants define the various supported sync status types. // -// NOTE: These are currently unused but are being defined for the possibility of -// supporting sync status on a per-address basis. +// NOTE: These are currently unused but are being defined for the possibility +// of supporting sync status on a per-address basis. const ( ssNone syncStatus = 0 // not iota as they need to be stable for db ssPartial syncStatus = 1 @@ -66,11 +66,9 @@ type addressType uint8 // These constants define the various supported address types. const ( - adtChain addressType = 0 // not iota as they need to be stable for db - adtImport addressType = 1 - adtScript addressType = 2 - adtChainWitness addressType = 3 - adtChainNestedWitness addressType = 4 + adtChain addressType = 0 + adtImport addressType = 1 // not iota as they need to be stable for db + adtScript addressType = 2 ) // accountType represents a type of address stored in the database.