function getBlockHeader(int blockHash) returns (bytes32[3]);
}

contract Lottery {
    int constant LOTTERY_BLOCKS = 7 * 24 * 6;
    uint constant LOTTERY_INTERVAL = 7 days;
    int constant CUTOFF_BLOCKS = 6 * 6;
    uint constant CUTOFF_INTERVAL = 6 hours;
    uint constant TICKET_PRICE = 10 finney;
    uint constant FEE_FACTOR = 200; 

    BTCRelay btcRelay = BTCRelay(0x41f274c0023f83391de4e0733c609df5a124c3d4);

    struct Bucket {
        uint numHolders;
        address[] ticketHolders;
    }