ignore unknonw meta

This commit is contained in:
thloyi
2026-05-18 11:46:49 +08:00
parent 39bfeb085f
commit 9454c3f6c7
2 changed files with 5 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ package pump_parser
import (
"encoding/base64"
"encoding/json"
"errors"
"fmt"
"strconv"
"strings"
@@ -876,6 +877,9 @@ func ConvertYellowstoneGrpcTransactionToSolanaTransaction(y *pb.SubscribeUpdateT
//Version: nil,
}
meta := y.Transaction.GetMeta()
if meta == nil {
return nil, errors.New("meta can not parser")
}
yTx := y.Transaction.Transaction
if meta.Err != nil && len(meta.Err.GetErr()) > 0 {