Bitcoin Forum
May 22, 2024, 12:15:04 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Transaction Ordering in a Block  (Read 563 times)
jmasterson (OP)
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
April 24, 2015, 07:08:44 PM
 #1

How is a transaction being ordered inside a block? Looking at the blockchain.info explorer, I'm wondering, if you want your transaction to be in the first in the list (except for the mined block reward), can you control it?

I'm asking this because I'm planning to make a betting game where players will bet on who's transaction are first in the list. Can you control it if you want your transaction to be first in the list? Or is this purely on the miner's prerogative? Or even them can't control how the transactions are ordered in a block?
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4653



View Profile
April 24, 2015, 07:13:58 PM
 #2

How is a transaction being ordered inside a block? Looking at the blockchain.info explorer, I'm wondering, if you want your transaction to be in the first in the list (except for the mined block reward), can you control it?

I'm asking this because I'm planning to make a betting game where players will bet on who's transaction are first in the list. Can you control it if you want your transaction to be first in the list? Or is this purely on the miner's prerogative? Or even them can't control how the transactions are ordered in a block?

Mining pools and solo miners have control over the order of the transactions in their blocks.

This means that a mining pool can place a bet in your game, and then they can create a block that makes sure that they win.
jmasterson (OP)
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
April 24, 2015, 07:15:57 PM
 #3

How is a transaction being ordered inside a block? Looking at the blockchain.info explorer, I'm wondering, if you want your transaction to be in the first in the list (except for the mined block reward), can you control it?

I'm asking this because I'm planning to make a betting game where players will bet on who's transaction are first in the list. Can you control it if you want your transaction to be first in the list? Or is this purely on the miner's prerogative? Or even them can't control how the transactions are ordered in a block?

Mining pools and solo miners have control over the order of the transactions in their blocks.

This means that a mining pool can place a bet in your game, and then they can create a block that makes sure that they win.

Can I ask how many times the biggest mining pool wins a block everyday?
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4653



View Profile
April 24, 2015, 07:18:32 PM
 #4

How is a transaction being ordered inside a block? Looking at the blockchain.info explorer, I'm wondering, if you want your transaction to be in the first in the list (except for the mined block reward), can you control it?

I'm asking this because I'm planning to make a betting game where players will bet on who's transaction are first in the list. Can you control it if you want your transaction to be first in the list? Or is this purely on the miner's prerogative? Or even them can't control how the transactions are ordered in a block?

Mining pools and solo miners have control over the order of the transactions in their blocks.

This means that a mining pool can place a bet in your game, and then they can create a block that makes sure that they win.

Can I ask how many times the biggest mining pool wins a block everyday?

At the moment, the largest pool is probably F2Pool with about 21% of the global hash power.

As such, they should solve approximately 21% of the blocks per day.

There are on average 144 blocks solved per day.

21% X 144 = A bit more than 30 blocks per day.
jmasterson (OP)
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
April 24, 2015, 07:33:14 PM
 #5

How is a transaction being ordered inside a block? Looking at the blockchain.info explorer, I'm wondering, if you want your transaction to be in the first in the list (except for the mined block reward), can you control it?

I'm asking this because I'm planning to make a betting game where players will bet on who's transaction are first in the list. Can you control it if you want your transaction to be first in the list? Or is this purely on the miner's prerogative? Or even them can't control how the transactions are ordered in a block?

Mining pools and solo miners have control over the order of the transactions in their blocks.

This means that a mining pool can place a bet in your game, and then they can create a block that makes sure that they win.

Can I ask how many times the biggest mining pool wins a block everyday?

At the moment, the largest pool is probably F2Pool with about 21% of the global hash power.

As such, they should solve approximately 21% of the blocks per day.

There are on average 144 blocks solved per day.

21% X 144 = A bit more than 30 blocks per day.

does it cost them anything to change the order of transactions instead of the default order?
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4653



View Profile
April 24, 2015, 07:34:42 PM
 #6

does it cost them anything to change the order of transactions instead of the default order?

Just the small amount of time that it takes a talented computer programmer to modify the code that the pool uses to build their blocks.
jmasterson (OP)
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
April 24, 2015, 07:40:11 PM
 #7

does it cost them anything to change the order of transactions instead of the default order?

Just the small amount of time that it takes a talented computer programmer to modify the code that the pool uses to build their blocks.

i guess they won't bother since i'm creating a very small game so it won't be too big deal for them Smiley thanks
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4653



View Profile
April 29, 2015, 11:21:33 AM
 #8

does it cost them anything to change the order of transactions instead of the default order?

Just the small amount of time that it takes a talented computer programmer to modify the code that the pool uses to build their blocks.

i guess they won't bother since i'm creating a very small game so it won't be too big deal for them Smiley thanks

In addition to solo miners and mining pools having full control over exactly where transactions appear in their blocks, it is also possible for an individual to influence where in a block their transaction will appear if they know the transaction sorting rules that the largest pools use.
S4VV4S
Hero Member
*****
Offline Offline

Activity: 1582
Merit: 502


View Profile
April 29, 2015, 11:34:33 AM
 #9

I don't know if you would be interested but the new version of VPNCoin wallet will have a P2P lottery system that allows anyone to create a lottery.

If you are interested then check out their announcemnt(s):
https://bitcointalk.org/index.php?topic=789961.msg10979898#msg10979898
https://bitcointalk.org/index.php?topic=789961.msg11091075#msg11091075

Keep in mind that the new version is not released yet but will be soon.
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!