pocketnetteam / pocketnet.core

Decentralized social network based on the blockchain
https://pocketnet.app
Apache License 2.0
115 stars 28 forks source link

Not working ban bind permission (combined with maxuploadtarget option) #560

Open HiHat opened 1 year ago

HiHat commented 1 year ago

Describe the bug Downloading restrictions not working.

To Reproduce Steps to reproduce the behavior:

  1. Add following options to pocketcoin.conf:
    whitebind=mempool,relay@0.0.0.0:37070   # download and noban permissions removed
    maxuploadtarget=10      # MiB per 24h
  2. Wait incoming node connections with blockchain downloading
  3. Check that node download more than granted by maxuploadtarget (bytessent column): pocketcoin-cli getpeerinfo | jq -r '.[] | [.addr, .subver, .synced_headers, .synced_blocks, .bytesrecv, .bytessent, .connection_type] | @tsv'

Expected behavior There are no nodes downloading more than granted expected.

Linux host

andyoknen commented 10 months ago

Hi @HiHat

I apologize for the long silence. Could you confirm that this problem is present in version 0.22, so that I can understand whether to close this issue or delve into the problem.

HiHat commented 9 months ago

Yes! Confirmed on 0.22.0!