github.com/kisexp/xdchain@v0.0.0-20211206025815-490d6b732aa7/private/engine/notinuse/dbupgrade_tx_manager.go (about) 1 package notinuse 2 3 import ( 4 "github.com/kisexp/xdchain/private/engine" 5 ) 6 7 // DBUpgradePrivateTransactionManager returns an error for all communication functions, 8 // while reporting it has the MultiplePrivateStates feature 9 type DBUpgradePrivateTransactionManager struct { 10 PrivateTransactionManager 11 } 12 13 func (ptm *DBUpgradePrivateTransactionManager) Groups() ([]engine.PrivacyGroup, error) { 14 return []engine.PrivacyGroup{ 15 { 16 Type: "resident", 17 Name: "private", 18 PrivacyGroupId: "private", 19 Description: "default resident group", 20 From: "", 21 Members: nil, 22 }, 23 }, nil 24 } 25 26 func (ptm *DBUpgradePrivateTransactionManager) Name() string { 27 return "dbupgrade" 28 } 29 30 func (ptm *DBUpgradePrivateTransactionManager) HasFeature(f engine.PrivateTransactionManagerFeature) bool { 31 return f == engine.MultiplePrivateStates 32 }