OSDN Git Service

modify config (#265)
[bytom/vapor.git] / wallet / annotated.go
index fe05f7b..b6bf016 100644 (file)
@@ -32,7 +32,7 @@ func annotateTxsAsset(w *Wallet, txs []*query.AnnotatedTx) {
 
 func (w *Wallet) getExternalDefinition(assetID *bc.AssetID) json.RawMessage {
        externalAsset, err := w.Store.GetAsset(assetID)
-       if err != nil {
+       if err != nil && err != ErrGetAsset {
                log.WithFields(log.Fields{"module": logModule, "err": err, "assetID": assetID.String()}).Info("fail on get asset definition.")
        }
        if externalAsset == nil {
@@ -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.MainNetParams
+               netParams = &consensus.BytomMainNetParams
        }
 
        if segwit.IsP2WPKHScript(prog) {