decode method

  1. @override
void decode(
  1. Uint8List data,
  2. int protocolVersion,
  3. MessageEncoding encoding
)
override

Decode message from bytes

Implementation

@override
void decode(Uint8List data, int protocolVersion, MessageEncoding encoding) {
  // MsgMemPool has no payload, so we just verify it's empty
  if (data.isNotEmpty) {
    throw WireException('mempool',
        'MsgMemPool should have no payload, got ${data.length} bytes');
  }
}