OSDN Git Service

consensus should be able to change (#300)
[bytom/vapor.git] / wallet / annotated.go
index b6bf016..50746ce 100644 (file)
@@ -192,7 +192,7 @@ func (w *Wallet) BuildAnnotatedInput(tx *types.Tx, i uint32) *query.AnnotatedInp
 func (w *Wallet) getAddressFromControlProgram(prog []byte, isMainchain bool) string {
        netParams := &consensus.ActiveNetParams
        if isMainchain {
-               netParams = &consensus.BytomMainNetParams
+               netParams = consensus.BytomMainNetParams(&consensus.ActiveNetParams)
        }
 
        if segwit.IsP2WPKHScript(prog) {