Bitcoin Forum
May 12, 2024, 08:38:30 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Block propagation latency with Odd/Even transaction outputs  (Read 1412 times)
TierNolan (OP)
Legendary
*
Offline Offline

Activity: 1232
Merit: 1083


View Profile
October 24, 2014, 03:11:15 PM
 #1

The main benefit of the IBLT system is that it allows fast propagation of blocks.  It doesn't reduce the average bandwidth required for a node (well 50% reduction).  It reduces the amount of low latency bandwidth required for a node.

Miners need to receive the new block before they can produce the subsequent block.  This dead time results in lost hashing power.

New blocks cannot be produced in advance, since any transactions in that block might be invalidated when a miner finds the next block.

I suggest adding a new soft-fork rule. 

- Each UTXO is designated odd or even based on the LSB of hash(scriptPubKey) for that output
- All inputs into a transaction must be either all odd or all even (giving an odd or even tx)
- Blocks are considered odd/even based on the LSB of their height
- Odd blocks can only contain odd txs and vice versa

This means that the UTXO set will be split into 2 subsets.  If the next block is even, then it will not be able to spend any of the UTXOs in the odd subset.  Since the block after it will be odd, miners can create a block containing all odd transactions and have it ready.

Once a miner hits a block, they broadcast their header only and all miners can instantly switch to a full length block.    The miner can then broadacst their block and will have on average 10 minutes to send it.

IBTL could still be used for actual distribution.

Wallets could be setup to only produce odd or even addresses.  If all your addresses are even, then you don't lose much by the system.  You just produce transactions as normal.  50% of the time, you have to wait an extra block for your tx to be included.  The parity of outputs can be swapped by sending them to an output of the other parity.

If this was an issue, the wallet could store some of its funds in the other parity.  Wallets would ideally randomly pick one or other as its primary parity.

1LxbG5cKXzTwZg9mjL3gaRE835uNQEteWF
1715503110
Hero Member
*
Offline Offline

Posts: 1715503110

View Profile Personal Message (Offline)

Ignore
1715503110
Reply with quote  #2

1715503110
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715503110
Hero Member
*
Offline Offline

Posts: 1715503110

View Profile Personal Message (Offline)

Ignore
1715503110
Reply with quote  #2

1715503110
Report to moderator
1715503110
Hero Member
*
Offline Offline

Posts: 1715503110

View Profile Personal Message (Offline)

Ignore
1715503110
Reply with quote  #2

1715503110
Report to moderator
1715503110
Hero Member
*
Offline Offline

Posts: 1715503110

View Profile Personal Message (Offline)

Ignore
1715503110
Reply with quote  #2

1715503110
Report to moderator
jl2012
Legendary
*
Offline Offline

Activity: 1792
Merit: 1097


View Profile
October 24, 2014, 05:29:19 PM
 #2

This will increase, if not double, the time for first confirmation. At least it will increase the variance of confirmation time

Donation address: 374iXxS4BuqFHsEwwxUuH3nvJ69Y7Hqur3 (Bitcoin ONLY)
LRDGENPLYrcTRssGoZrsCT1hngaH3BVkM4 (LTC)
PGP: D3CC 1772 8600 5BB8 FF67 3294 C524 2A1A B393 6517
TierNolan (OP)
Legendary
*
Offline Offline

Activity: 1232
Merit: 1083


View Profile
October 24, 2014, 05:34:55 PM
 #3

This will increase, if not double, the time for first confirmation. At least it will increase the variance of confirmation time

Yes, that is the tradeoff.  The advantage is that it eliminates (or at least greatly reduces) the benefit of having extremely low latency connections to other miners.

1LxbG5cKXzTwZg9mjL3gaRE835uNQEteWF
deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1032



View Profile WWW
October 24, 2014, 07:17:32 PM
 #4


- All inputs into a transaction must be either all odd or all even (giving an odd or even tx)

Picking the low hanging fruit - so then I can't spend my money. I've received .5 "even" and .5 "odd" into my wallet, neither of which were under my control. Now I want to pay 1 to a single party.


This means that the UTXO set will be split into 2 subsets.  If the next block is even, then it will not be able to spend any of the UTXOs in the odd subset.  Since the block after it will be odd, miners can create a block containing all odd transactions and have it ready.


Have it ready how? A block work still needs to include the hash of the previous block. Miners could be duped into flushing their work and working on the wrong parity by malicious header broadcasts. Maybe you should define what you mean by this.

You seem to be mixing your definitions for odd block/transaction/address etc.
TierNolan (OP)
Legendary
*
Offline Offline

Activity: 1232
Merit: 1083


View Profile
October 24, 2014, 07:52:40 PM
 #5

Picking the low hanging fruit - so then I can't spend my money. I've received .5 "even" and .5 "odd" into my wallet, neither of which were under my control. Now I want to pay 1 to a single party.

Your wallet could be all even or all odd.  When you ask for an address, it can check if it gives even/odd and discard it if it is the wrong parity.

This gives a longer wait until first confirm (half of the time) but the time until 6 confirms is only increased from 60 minutes to 70 minutes.

You can send all your even-coins to an odd output to make odd-coins.

Quote
Have it ready how? A block work still needs to include the hash of the previous block.

I meant you could have the block almost completely ready.  You could compute the merkle root. 

You would need to update the header to add the prev block (and the path to the coinbase to handle the extra-nonce)

The key point is that when a new block arrives, it invalidates lots of transaction outputs.

This means that if you have a block ready, you have to scan it and drop all transactions that depended on those outputs.

But, if the next block is only allowed to spend even outputs and you can create a block which contains only odd transactions, then no matter what transactions are in the next block, they can't invalidate any of the transactions in the block you have ready.

Quote
Miners could be duped into flushing their work and working on the wrong parity by malicious header broadcasts. Maybe you should define what you mean by this.

They would have to broadcast a valid header that meets POW. 

Each miner would be mining against one block and have the next block ready.

When a miner finds a valid nonce, they instantly forward the block header to all peers who forward it onward.  This doesn't require checking that the block is ok, just the header.

This is not recommended currently, since it creates an incentive for the miner to withhold the full block.  With this system, there is lots of time for the miner to send on their block.

When a miner receives the header, they can instantly update the prev field in their "next" block header and begin mining on that block.

I suggest the rules

- mine on the longest chain
- if tied, mine on the full block received earliest
- if tied, mine on the header received earliest


1LxbG5cKXzTwZg9mjL3gaRE835uNQEteWF
jonny1000
Member
**
Offline Offline

Activity: 129
Merit: 13



View Profile
October 26, 2014, 06:21:33 PM
Last edit: October 26, 2014, 07:13:36 PM by jonny1000
 #6

TierNolan

Please explain the benefits of this?  I don’t understand why this helps.  Under IBLT miners can begin work on the next block as soon as they are able to reconstruct the previous one, they don’t need to receive the full block.

Under your proposal I assume there is a rule that one needs to wait at least 2 blocks before spending a new output again?  Will this not make Bitcoin quiet slow?

Will there still not be a propagation problem occurring if two blocks are found quickly?  Why not increase the number of groups to 10 and have a target time of 1 minute?
TierNolan (OP)
Legendary
*
Offline Offline

Activity: 1232
Merit: 1083


View Profile
October 27, 2014, 03:06:40 PM
 #7

Please explain the benefits of this?  I don’t understand why this helps.  Under IBLT miners can begin work on the next block as soon as they are able to reconstruct the previous one, they don’t need to receive the full block.

The advantage is that nodes can have new blocks ready well in advance of when a block is found.

You can create block number 300,002 once block 300,000 is found.  This makes it possible to quickly switch to the new block when a block is found.

The current process means that nodes have to update their memory pools with the new block (delete all the transactions) and then generate a new block with the transactions that are left.

This is slow and can't really be done in a distributed way.

Quote
Under your proposal I assume there is a rule that one needs to wait at least 2 blocks before spending a new output again?  Will this not make Bitcoin quiet slow?

A transaction with even inputs and odd outputs could be spent in the next block.  Each address could only receive transactions every 2nd block.

Quote
Will there still not be a propagation problem occurring if two blocks are found quickly?  Why not increase the number of groups to 10 and have a target time of 1 minute?

Yes, if 2 blocks are found once after another then the problem still occurs, but that is less often.

A less complex system would be if pools had a way to tell miners that they have no block ready.

<new block is found>

-> Send message to all miners to cancel the current block

<subsequent block is ready>

-> Send info to miners to build on the new block

This would mean that if a pool was slow to update, their miners could switch to a backup pool while they generate a new block.

This would allow high latency pools to compete.

1LxbG5cKXzTwZg9mjL3gaRE835uNQEteWF
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!