FeaturesGuide
Bit
Window
SidechainsDownload →

How BitWindow handles sidechain proposals and votes

Propose a drivechain sidechain, watch the miner votes for activation, and vote on withdrawal bundles in the M4 Explorer of BitWindow.

Last updated

Miners decide which sidechains become active, and which withdrawals leave a sidechain. BitWindow has three pages for this work: Sidechain Proposal, Sidechain Activation and the M4 Explorer. These pages are mostly for miners. A user of a sidechain can use them to watch the status of a withdrawal.

Where you find the pages

Page Where
Sidechain Activation Work for Bitcoin menu, or Add / Remove on the Sidechains tab
Sidechain Proposal Propose New Sidechain on the Sidechain Activation page
M4 Explorer Use Bitcoin menu, and Sidechain Withdrawal Admin in the Work for Bitcoin menu

Both menu items for the M4 Explorer open the same page. The title of the page is Sidechain Withdrawal Admin.

How miners control sidechains

The BIP300 specification gives miners two types of votes. All votes go into the coinbase transaction of a block. Thus only the miner of a block can put a vote in it.

  1. A miner proposes a new sidechain for a slot (message M1).
  2. Miners acknowledge the proposal with an ACK in their blocks (message M2).
  3. If the proposal gets sufficient ACKs in time, the slot becomes active.
  4. Later, a miner puts a withdrawal bundle of the sidechain in a block (message M3).
  5. Miners vote for or against the bundle in their blocks (message M4).
  6. A bundle with sufficient votes gets paid out on the mainchain (message M6).

The specification sets these limits:

Proposal for Time for votes Votes necessary
An unused slot 2,016 blocks 1,815 ACKs, with no more than 201 blocks that do not ACK
A used slot (replaces a sidechain) 26,300 blocks 13,150 ACKs
A withdrawal bundle 26,300 blocks More than 13,150 upvotes

A test network can use shorter limits. For a withdrawal bundle, BitWindow uses 144 blocks on Alphanet and 10 blocks on L2L Signet.

Sidechain Proposal

The Sidechain Proposal form makes a proposal for a new sidechain. It has two parts.

Required:

  • Slot #: a number from 0 to 255. A slot with a pending proposal cannot get a second one.
  • Title: the name of the sidechain.

Optional (but recommended):

  • Description: the purpose of the sidechain, and where to find more information.
  • Version: a positive integer.
  • Release tarball hash (256 bits): the SHA-256 hash of the original build of the sidechain software.
  • Build commit hash (160 bits): the git commit of the first sidechain release.

Click Read more for help with the optional fields. These fields help users find the correct sidechain full node software. Only this software can filter out invalid withdrawals.

Click Propose Sidechain to save the proposal. BitWindow then says that the proposal goes into the chain only when this node mines a block. To propose a sidechain, BitWindow must run in full mode.

Sidechain Activation

The Sidechain Activation page has two tables.

Escrow Status (Active Sidechains) shows the active sidechains, with the columns Active, Name and CTIP TxID. The CTIP is the treasury output that holds all coins of the sidechain. Right-click a row and select Show Chaintip Transaction to see it.

Pending Sidechain Proposals shows the proposals that wait for ACKs. The columns are Vote, SC #, Replacement, Title, Description, Age, Fails and Hash. Vote shows the number of ACKs, and SC # shows the slot.

The page shows the votes, but it has no button to ACK a proposal. Miners add the ACKs in the blocks that they mine.

The M4 Explorer

The M4 Explorer shows the withdrawal bundles of each sidechain, and the votes for them. M4 is the BIP300 message for a vote on a withdrawal bundle.

Default vote

Default vote for all sidechains sets how your node votes on a sidechain that has no upvote from you.

Choice What your node does
Abstain It does not change the vote count of any bundle.
Upvote bundles from this node It upvotes the first pending bundle that this node proposed.
Upvote the first bundle It upvotes the first pending bundle.
Alarm It downvotes all bundles of the sidechain.

An upvote adds one vote to a bundle, and takes one vote from each other bundle of the same sidechain.

Pending Withdrawals

Select a sidechain in Active Sidechains. The card Pending Withdrawals shows its withdrawal bundles. Each bundle shows:

  • the M6 bundle hash, and a status badge;
  • Age: with the age and the maximum age, in blocks;
  • Blocks left: before the time for votes stops;
  • a bar that shows the part of the time that is used.

Click Upvote on a pending bundle to vote for it on that sidechain. The button then shows Upvoted. Click it again to remove the upvote. Then the sidechain gets the default vote again. Click a bundle to copy its hash.

The status of a bundle is PENDING, SUCCEEDED or FAILED.

Vote History

Vote History shows recent blocks and the withdrawal votes in each block. For the selected sidechain, each vote shows Upvote, Alarm or Abstain, with the bundle hash. A block with no vote shows No withdrawal votes recorded in this block.

Votes and mining

Your votes go into the blocks that your node mines. If your node mines no blocks, your votes do not reach the chain. Read about mining in mining.

A sidechain user can see the same bundles on the Sidechains tab, under See Withdrawals. Read more in how sidechains work.

On networks without sidechains

On a network without drivechain support, such as Bitcoin mainnet, these pages do not work.

  • Sidechain Activation opens a "Coming soon" page. The page says that a miner would propose and vote on sidechains here.
  • Sidechain Withdrawal Admin opens a "Coming soon" page. The page says that Drivechains are not activated yet.
  • The "Coming soon" page shows THIS COULD BE BITCOIN. It says that a soft fork must activate Drivechain first.
  • If one of the pages opens on such a network, it shows Not available on this network. It tells you to switch to an eCash network or Signet.

The home page cards Fast Withdrawal, Sidechains and Recent Actions also show Not available on this network there. Read more in networks.

Questions

How does a new drivechain sidechain become active?

A miner proposes the sidechain in a block. Then miners vote for the proposal in the blocks that they mine. When the proposal has sufficient votes in time, the slot becomes active.

What is the M4 Explorer in BitWindow?

The M4 Explorer, with the title Sidechain Withdrawal Admin, shows the withdrawal bundles of each sidechain and the votes for them. A miner can set the votes of the node there.

Why does BitWindow show Coming soon for Sidechain Activation?

The network has no drivechain support, for example Bitcoin mainnet. Switch to L2L Signet or an eCash network to use these pages.

Can I propose a sidechain from BitWindow?

Yes, in full mode. Open Sidechain Activation and click Propose New Sidechain. The proposal goes into the chain only when your node mines a block.