Stop converting `Message::Inv(TxId+)` into `Request::TransactionsById` (#2660)

`Message::Inv(TxId+)` is a transaction advertisement,
so it should be converted into `Request::AdvertiseTransactionIds`.

This is a copy-paste mistake from the original zebra-network
implementation.
This commit is contained in:
teor 2021-08-25 07:40:21 +10:00 committed by GitHub
parent 069f7716db
commit 047576273c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -853,7 +853,7 @@ where
if tx_ids.iter().all(|item| item.unmined_tx_id().is_some())
&& !tx_ids.is_empty() =>
{
Request::TransactionsById(transaction_ids(&items).collect())
Request::AdvertiseTransactionIds(transaction_ids(&items).collect())
}
_ => {
self.fail_with(PeerError::WrongMessage("inv with mixed item types"));