public inbox for bitcoindev@googlegroups.com
 help / color / mirror / Atom feed
From: "Rebroad (sourceforge)" <rebroad+sourceforge.net@gmail•com>
To: "Rebroad (sourceforge)" <rebroad+sourceforge.net@gmail•com>
Cc: "bitcoin-development@lists•sourceforge.net"
	<bitcoin-development@lists•sourceforge.net>
Subject: [Bitcoin-development] free tx rate limiter potentially causes more traffic not less?
Date: Sat, 5 May 2012 09:37:05 +0100	[thread overview]
Message-ID: <CAFBxzADtZxJUB49bVzjGdmJoaQnJPMcNhRwpjc=pgRcsMoCQgA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 903 bytes --]

I recently was dabbling with AskFor() and changing the time waited from 2
minutes to 10 seconds (I think perhaps this value may change in future
versions when "network tuning" is implemented).

I noticed that, when used with the -limitfreerelay option that is causes
significant increase in traffic between peers. This is because the tx gets
asked for (from all connected peers usually), but AlwaysHave never becomes
true as it's never stored, always rejected, so it effectively getdatas the
transaction from every single connected peer.

Would it perhaps be better to set up a memory pool for rejected txs and
blocks (perhaps keeping only the hash) so that these rejected items can
continue being ignored?

I hope these observations are ok - I consider myself at the "trying to
understand the code/protocol/algorithm" stage so might sometimes make false
assumptions of what the code intends to do.

Ed

[-- Attachment #2: Type: text/html, Size: 1030 bytes --]

                 reply	other threads:[~2012-05-05  8:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFBxzADtZxJUB49bVzjGdmJoaQnJPMcNhRwpjc=pgRcsMoCQgA@mail.gmail.com' \
    --to=rebroad+sourceforge.net@gmail$(echo .)com \
    --cc=bitcoin-development@lists$(echo .)sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox