packages/client-p2p/src/handler/transactions.ts
// Copyright 2017-2019 @polkadot/client-p2p authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { P2pInterface, PeerInterface } from '../types';
import { Handler } from './types';
import { Transactions } from '@polkadot/client-types/messages';
// TODO Propagate
// eslint-disable-next-line @typescript-eslint/no-unused-vars
function handleTransactions (self: P2pInterface, peer: PeerInterface, message: Transactions): void {
// self.l.debug(() => [peer.shortId, 'Transactions', JSON.stringify(message)]);
}
(handleTransactions as Handler).type = Transactions.type;
export default (handleTransactions as Handler);