-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove the AddrIndexrs dependency in the dispenser. #1352
Comments
Ah I thought that this was necessary! 🤯 |
I thought so too! but the only reason to have something like |
I found: https://github.com/CounterpartyXCP/counterparty-lib/blob/master/counterpartylib/lib/messages/dispenser.py#L195 |
For context; the A limit of 1000 dispenses was also introduced with 9.61, addressing the same problem. |
uh can we roll that back so we can fix the core architecture? @ouziel-slama is right, this kind of thing breaks the whole transaction model and will have significant consequences for performance optimization |
Sorry I'm not sure I understand! either the dispenser is still full and open and several thousand dispenses should not be a problem. Either the dispenser is empty or closed and this should not create a "dispense" in the base. |
@Jpja @adamkrellenstein the limit of 1000 sounds enough to resolve the problem for now, right ? if yes then let's remove "cannot open on another address if it has any confirmed bitcoin txs" as quickly as possible. |
Kill it with fire 🔥 |
Yes, agree. Let's remove "cannot open on another address if it has any confirmed bitcoin txs" |
addrindexrs
addrindexrs
dependency in the dispenser.
Ah I finally (re)found why we need an addrindex and I remember now :) here https://github.com/CounterpartyXCP/counterparty-lib/blob/master/counterpartylib/lib/backend/__init__.py#L224 for the |
This is what dispensers do. While open + units remaining, any source address that sends enough bitcoin to a dispenser destination address will trigger a dispense. It is logically simple, but I understand it might break previous assumptions like all Counterparty transactions must have the CNTRPRTY message... Will the "retrieve all Bitcoin transactions for a given address" functionality be moved to counterparty-lib? This is what needs to happen in order to continue supporting dispensers as they exist now... Or what are people thinking about how to move forward with dispensers? |
addrindexrs
dependency in the dispenser.
See #1764 |
Unless you figure out why the protocol needs it, there's no point adding dependencies that make it harder for everyone to install Counterparty. Bitcoind is normally sufficient for the protocol, adding heavy dependencies can only make adoption of an application more difficult.Once a transaction is in the database we should not need the backend to parse a message! We cannot consider the Blockchain as a whole as the Counterparty database. This makes no sense.
The text was updated successfully, but these errors were encountered: