public static List < Transaction > parseTransactionsFromPaymentMessage ( NetworkParameters params , Protos . Payment paymentMessage ) { final List < Transaction > transactions = new ArrayList <> ( paymentMessage . getTransactionsCount ( ) ) ; for ( final ByteString transaction : paymentMessage . getTransactionsList ( ) ) transactions . ( params . getDefaultSerializer ( ) . makeTransaction ( transaction . toByteArray ( ) ) ) ; return transactions ; }
Parse transactions from payment message .