On Blockchain Commit Times An analysis of how miners choose Bitcoin - - PowerPoint PPT Presentation

on blockchain commit times
SMART_READER_LITE
LIVE PREVIEW

On Blockchain Commit Times An analysis of how miners choose Bitcoin - - PowerPoint PPT Presentation

On Blockchain Commit Times An analysis of how miners choose Bitcoin transactions Johnnatan Messias http://johnnatan.me SDBD'20 Joint w/ Mohamed Alzayat, Balakrishnan Chandrasekaran, and Krishna P. Gummadi 1 1 The Current Status of the Top-2


slide-1
SLIDE 1

Johnnatan Messias http://johnnatan.me SDBD'20 Joint w/ Mohamed Alzayat, Balakrishnan Chandrasekaran, and Krishna P. Gummadi

On Blockchain Commit Times

An analysis of how miners choose Bitcoin transactions

slide-2
SLIDE 2

1

slide-3
SLIDE 3

1

slide-4
SLIDE 4

The Current Status of the Top-2 Blockchains

60% of all transactions were added in the last 2.5 years 80% of all transactions were added in the last 1.5 years Bitcoin Ethereum

2

slide-5
SLIDE 5

The Current Status of the Top-2 Blockchains

60% of all transactions were added in the last 2.5 years 80% of all transactions were added in the last 1.5 years Bitcoin Ethereum

2

Could this become a problem in the long term?

slide-6
SLIDE 6
  • The common wisdom: transactions are prioritized based on fee-per-byte
  • There is no guarantee that it has been followed!
  • Are miners "fair" on the transaction order?
  • We want to investigate how miners order transactions!

Could This Become a Problem?

3

slide-7
SLIDE 7

How Transactions Are Selected?

slide-8
SLIDE 8

How Transactions Are Selected?

4

Bob

Mempool

Block limit

...

slide-9
SLIDE 9

5

Mining and Rewards

  • Miners get block reward + transaction fees
  • Block reward halves every 4 years
  • In the future, it will become 0!
  • Fees will be the main mining incentive

0 BTC 25 BTC Block Reward 50 BTC 12.5 BTC

~ 4 years ~ 4 years ~ 121 years

slide-10
SLIDE 10

What Do Transactions Look Like?

slide-11
SLIDE 11

6

Attributes Data set 힐 Data set 힑 Times span

  • Feb. 20th – Mar.

13th, 2019 Jun.1st – 30th,
 2019 #trans. committed 6,816,375 10,487,966 #blocks 3,119 4,522 #empty-blocks 38 18

  • We deploy a Bitcoin Full-Node
  • Gather data from Mempool!

Blockchain Data Set

slide-12
SLIDE 12

7

Blockchain Data Set

Data set 훣 Data set 훢

slide-13
SLIDE 13
  • The fear of the ever-growing commit times
  • Transaction commit times vary!
  • Mempool is congested in at least 75%, and 92% for data sets 훢 and 훣, respectively!

Is Mempool Congested?

8

slide-14
SLIDE 14
  • Fee rate increases during periods of congestion.
  • Transactions fee rate increases proportionally to the level of congestion.

Do People Pay More When There Is Congestion?

Dataset 훢 Dataset 훣

9

slide-15
SLIDE 15
  • High fee rate results in decreasing the commit delays!
  • In both data sets

Do High Feerate Transactions Suffer Fewer Delays?

10

Dataset 훣 Dataset 훢

slide-16
SLIDE 16

Do Miners Follow the Common Wisdom?

slide-17
SLIDE 17
  • Actual block:

BMiner

  • Baseline (fee-per-byte ordering):

BBaseline

Establishing a Baseline

BMiner BBaseline

11

Tx0 Tx1 Tx2 Tx3 Tx0 Tx1 Tx2 Tx3

slide-18
SLIDE 18
  • Actual block:

BMiner

  • Baseline (fee-per-byte ordering):

BBaseline

  • Miners follow the fee-per-byte ordering (

)

BMiner ∩ BBaseline = 100 %

  • Do they follow?

Establishing a Baseline

BMiner ∩ BBaseline

11

Tx0 Tx1 Tx2 Tx3 Tx0 Tx1 Tx2 Tx3

slide-19
SLIDE 19
  • Actual block:

BMiner

  • Baseline (fee-per-byte ordering): BBaseline
  • Miners selected the same transactions as in our baseline

( )

BMiner ∩ BBaseline

  • Where "our view" is at fault (

)

  • Did our node receive the transactions later?

BMiner∖BBaseline

  • Where "their view" is at fault (

)

  • Did miners receive the transactions later?

BBaseline∖BMiner

  • We give miners the benefit of doubt!

When "our View" Differs

BMiner∖BBaseline BBaseline∖BMiner

BMiner BBaseline

12

Txm Tx1 Tx0 Tx2 Tx3 Tx4 Tx1 Tx0

BMiner ∩ BBaseline

slide-20
SLIDE 20

Observations are consistent across the top-5 mining-pool operators.

Do Miners Deviate?

13

In the median, 78% of the transactions in baselines appear in the corresponding actual blocks

slide-21
SLIDE 21

Even with a 2-block cutoff period, miners ignored some transactions

14

Did Miners Receive the Transactions Later?

slide-22
SLIDE 22

15

Do Miners Use a Different Protocol?

  • Transactions in

have lower fee-per-byte compared to those in

BMiner∖BBaseline BMiner ∩ BBaseline

  • Miners ignore transactions and prioritize others
  • Perhaps miners are using a different protocol, in addition to the fee-per-byte
slide-23
SLIDE 23

15

Do Miners Use a Different Protocol?

  • Transactions in

have lower fee-per-byte compared to those in

BMiner∖BBaseline BMiner ∩ BBaseline

  • Miners ignore transactions and prioritize others
  • Perhaps miners are using a different protocol, in addition to the fee-per-byte

Miners somehow deviate!

slide-24
SLIDE 24

Conclusion

slide-25
SLIDE 25
  • Fee-per-byte only does not explain the dequeuing ordering
  • Users cannot only rely on this metric to offer a proper fee
  • Mining pool operators behaviors do not make their rank ordering transparent
  • Can we ensure everyone follows the same prioritization?
  • Why do miners deviate?
  • Could it be due to the stratum protocol?
  • Could it be due to transactions accelerator services?
  • Apply our methodology on other blockchains (e.g., Ethereum)
  • Build a predictor to help users with the proper transaction fee

Conclusions and Future Work

16

slide-26
SLIDE 26

On Blockchain Commit Times

An analysis of how miners choose Bitcoin transactions

Joint w/ Mohamed Alzayat, Balakrishnan Chandrasekaran, and Krishna P. Gummadi Johnnatan Messias http://johnnatan.me SDBD'20