Skip to content

Commit

Permalink
Print transaction id, target tick and max tick.
Browse files Browse the repository at this point in the history
  • Loading branch information
LINCKODE committed Jul 30, 2024
1 parent d54bc75 commit e2646e1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions foundation/rpc_server/rpc_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,7 @@ 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)
}
fmt.Printf("Transaction: %s | Target tick: %d | Max tick: %d", transactionId, transaction.Tick, maxTick)

return &protobuff.BroadcastTransactionResponse{
PeersBroadcasted: int32(broadcastTxToMultiple(ctx, s.qPool, decodedTx)),
Expand Down

0 comments on commit e2646e1

Please sign in to comment.