public static InventoryMessage with ( Transaction ... txns ) { checkArgument ( txns . length > 0 ) ; InventoryMessage result = new InventoryMessage ( txns [ 0 ] . getParams ( ) ) ; for ( Transaction tx : txns ) result . addTransaction ( tx ) ; return result ; }
Creates a new inv message for the given transactions .