diff --git a/foundation/rpc_server/rpc_server.go b/foundation/rpc_server/rpc_server.go index b923087..a7730ae 100644 --- a/foundation/rpc_server/rpc_server.go +++ b/foundation/rpc_server/rpc_server.go @@ -5,6 +5,7 @@ import ( "context" "encoding/base64" "encoding/json" + "fmt" "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" "github.com/pkg/errors" "github.com/qubic/go-node-connector/types" @@ -187,6 +188,10 @@ func (s *Server) BroadcastTransaction(ctx context.Context, req *protobuff.Broadc return nil, status.Error(codes.Internal, err.Error()) } + if transaction.Tick < maxTick+15 { + fmt.Printf("WARN: Transaction %s has a taget tick smaller than network tick(%d) + 15(%d)", transactionId, maxTick, maxTick+15) + } + return &protobuff.BroadcastTransactionResponse{ PeersBroadcasted: int32(broadcastTxToMultiple(ctx, s.qPool, decodedTx)), EncodedTransaction: req.EncodedTransaction,