log "github.com/sirupsen/logrus"
- "github.com/vapor/account"
- "github.com/vapor/asset"
- "github.com/vapor/blockchain/query"
- "github.com/vapor/common"
- "github.com/vapor/consensus"
- "github.com/vapor/consensus/segwit"
- "github.com/vapor/crypto/sha3pool"
- "github.com/vapor/protocol/bc"
- "github.com/vapor/protocol/bc/types"
+ "github.com/bytom/vapor/account"
+ "github.com/bytom/vapor/asset"
+ "github.com/bytom/vapor/blockchain/query"
+ "github.com/bytom/vapor/common"
+ "github.com/bytom/vapor/consensus"
+ "github.com/bytom/vapor/consensus/segwit"
+ "github.com/bytom/vapor/crypto/sha3pool"
+ "github.com/bytom/vapor/protocol/bc"
+ "github.com/bytom/vapor/protocol/bc/types"
)
// annotateTxs adds asset data to transactions
func (w *Wallet) getAddressFromControlProgram(prog []byte, isMainchain bool) string {
netParams := &consensus.ActiveNetParams
if isMainchain {
- netParams = &consensus.MainNetParams
+ netParams = consensus.BytomMainNetParams(&consensus.ActiveNetParams)
}
if segwit.IsP2WPKHScript(prog) {