Skip to content

Conversation

@random-zebra
Copy link

Issue
Some p2p message is being logged with the improper command name. E.g. masternode pings logged as fbs (finalized budgets):

2021-01-11 11:52:16 got inv: fbs 6a3faa173c022f03268cbcd6f877ba935a0cfd3a7d1cc14a834bc3f335b4d349  new peer=17
2021-01-11 11:52:16 askfor fbs 6a3faa173c022f03268cbcd6f877ba935a0cfd3a7d1cc14a834bc3f335b4d349  1610366775535727 (12:06:15) peer=17
2021-01-11 11:52:16 received: mnp (151 bytes) peer=21
2021-01-11 11:52:16 mnp - Masternode ping, vin: 33996bf6cb102b73baacfe5cbfa178c0e1d47013cf46dd8b2fc0a7467220c36c
2021-01-11 11:52:16 CheckAndUpdate: New Ping - 6a3faa173c022f03268cbcd6f877ba935a0cfd3a7d1cc14a834bc3f335b4d349 - 0afbb2fc22536f5abc518475113ba945a902f6742112a3aaf79bf3408f22a3c4 - 1610365936

Cause
The ppszTypeName array is not properly ordered following the MSG_ enum in protocol.h

Copy link

@furszy furszy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch!
Tested ACK 50d9569.

Copy link
Collaborator

@Fuzzbawls Fuzzbawls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 50d9569

@random-zebra random-zebra added the Needs Backport Placeholder tag for anything needing a backport to prior version branches label Jan 13, 2021
@random-zebra random-zebra merged commit af9df0e into PIVX-Project:master Jan 13, 2021
Fuzzbawls pushed a commit to Fuzzbawls/PIVX that referenced this pull request Jan 14, 2021
Fuzzbawls pushed a commit to Fuzzbawls/PIVX that referenced this pull request Jan 14, 2021
furszy added a commit that referenced this pull request Jan 14, 2021
40a66b6 [Net] Add new mainnet checkpoint for main net block 2678402 (random-zebra)
e3ce162 [Consensus] Bump active protocol to 70921 (random-zebra)
5b9592b Tests: Add block value test to budget_tests.cpp (random-zebra)
6f0e0a8 Consensus: Fix IsBlockValueValid for superblocks (random-zebra)
570f038 [Masternodes] Don't ban invalid pings before enforcement (random-zebra)
3e86266 [DB] Don't check file contents when dumping budgets/mnodes/payments (random-zebra)
30f41fe [DB] Add database version to the cache files for tiertwo managers (random-zebra)
b9800ef Check interruptNet during dnsseed lookups (Matt Corallo)
a0184d2 [Cleanup] Remove unused CInv string-ctr, make GetCommand private (random-zebra)
66018c7 [P2P] Proper order of ppszTypeName and allNetMessageTypes (random-zebra)
0a235b6 Do not make it trivial for inbound peers to generate log entries (Matt Corallo)
910f83f [Net] Remove unused RecvLine function. (furszy)
ed1d377 [GUI] Receive screen, fix missing "Add label" text. (furszy)

Pull request description:

  backport the following PRs to the `5.0` branch:

  #2128
  #2133
  #2130
  #2134
  #2129
  #2136
  #2137

ACKs for top commit:
  furszy:
    ACK 40a66b6
  random-zebra:
    ACK 40a66b6

Tree-SHA512: b7c149645c935838bdcfb82c66e8522815f48e8c4e9354af889fba8d6e9c50fad178e2de6b28ac72174e0d513d9ff484a517b6fa036d3478e410e447df73d847
@random-zebra random-zebra removed the Needs Backport Placeholder tag for anything needing a backport to prior version branches label Jan 17, 2021
@random-zebra random-zebra added this to the 5.0.1 milestone Jan 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants