Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    @msdq10_twitter I merged ConsenSys/btcrelay-fetchd#14 and does that help?
    @ethers it's working, thanks
    Philip Saunders
    Will there be a version of BTCRelay for BCH?
    Boris Kuznetsov
    @Physes I think that it isn't hard to do because BTC and BCH have many in common
    I mean make a patch to allow store BCH heads of transactions
    Hello everyone. Project still alive? Is it profitable to deploy a relay node?
    can anyone explain please how to use BTCrelay? documentation puzzled me up
    Ayushya Chitransh
    I too am in the same position as @TavishBarua
    same here
    Aleksey Smolenchuk
    Looks as though the last block header fee was 0
    A while ago too... is this dead?
    Nick Savers
    Yadunandan Batchu
    @ethers is btcrelay functional?
    Andriy Bogomazov
    Hey guys, a little question from a newbie, if I understand correctly, storeBlockHeader is called by a relayer node. I assume several relayers should call storeBlockHeader for it to be valid (6 confirmations ish)?
    if so, how do you ensure that the caller is a relayer? or is relayers network - a permissioned blockchain, and hence there is a "whitelist" in a contract?
    Thank you.
    Hi @bogomazov at each height, storeBlockHeader only needs to be called once. A "magic" of SPV is that it doesn't matter who the caller/provider of the block header is: BTC Relay can validate it on its own. False headers will be effectively ignored by BTC Relay
    Hi, I tried to deploy btcrelay by testrpc(ganache-cli) and it's failed because of Runtime Error: out of gas.
    I already try to set more gas (8M) and lower gasprice (1) and it's still failed
    Does anyone succeed to deploy btcrelay via testrpc?
    Hey is BTC Relay still active?
    It looks like the last transaction on etherscan is months old.
    Nick Savers
    @ethers ^^^
    Alexei Zamyatin
    Hi everyone. I was looking into BTC relay and was wondering why neither the node.js nor the python input-data-decoders are able to parse transaction inputs? I've used the ABI supplied here (http://btcrelay.surge.sh/BitcoinRelayABI.js). Is there perhaps a version mismatch on the ABI? Basically, I'd like to know which functions were called when and with which data.
    Alexei Zamyatin
    Perhaps someone can help if the question is more specific. Been trying to identify the exact calls, but only found 1 on etherscan - as said, had problems decoding the input using the available ABI.
    "0x2b861629": "storeBlockHeader(bytes header)",
    "0x13f955e1": "?",
    "0x90fa337d": "?",
    "0x740ba43b": "?",
    "0xb8c48f8c": "?",
    "0x0f5995ce": "?"
    @ethers Hi everyone, is the BTC relay still functional? It seems cannot work.
    yes it's still functional
    @eth_eth87955763_twitter Thanks for your helpful info!
    @eth_eth87955763_twitter Hi everyone, for help! BTCrelay depends on relayers to relay BTC block headers to build a mini-version of BTC blockchain for TX verification. Since there seems to be no relayers for couples of months. Therefore, does it mean that the BTCrelay cannot correctly verify a recent BTC TX? (It can correctly verify the inclusion of a TX in a submitted block, but it cannot verify that the submitted BTC block is valid because its previous blocks are missing)
    Kindly contact officiallives1@gmail.com if you need anything
    @alexeiZamyatin_twitter Hi, the "bytes" type is (quite) tricky, so maybe the tools you're using with node.js or python input-data-decoders or etherscan might be buggy? The input to storeBlockHeader is exactly 80bytes in case that helps
    @wren424 and @aj0strow yes BTCRelay needs relayers to feed it the bitcoin blockheaders; the last person who was helping stopped around months ago. For testing, can try using an older transaction
    anybody interested in joining a research group on generalisable fungibility, please throw yourself against the wall here: https://t.me/joinchat/B2N9WxKqpYvHsszn4u8hLw
    I know that it's slightly off topic but, really, it all comes back to BTC in the end anyway.
    Alexei Zamyatin

    Hi. Is anyone here, who can explain what exactly is happening in the m_saveAncestors and priv_fastGetBlockHash__ functions in btcChain.se? I understand the idea of the indexing of block ancestors but I'm concerned about the exact details of the implementation.
    Specifically, this code block in m_saveAncestors

               with $i = 1:
                    while $i < NUM_ANCESTOR_DEPTHS:
                        with $depth = m_getAncDepth($i):
                            if m_getHeight($blockHash) % $depth == 1:
                                m_mwrite32(ref($ancWord) + 4*$i, $prevIbIndex)
                                m_mwrite32(ref($ancWord) + 4*$i, m_getAncestor($hashPrevBlock, $i))
                            $i += 1

    Also, could it be, that priv_fastGetBlockHash__ fails if the requested block has more than 78125 confirmations? I may be wrong, but it seems to me that the following check will fail in this case:
    (excerpt from priv_fastGetBlockHash__):

        blockHash = self.heaviestBlock
        anc_index = NUM_ANCESTOR_DEPTHS - 1 <-- this is equal to 7
        while m_getHeight(blockHash) > blockHeight:
            while m_getHeight(blockHash) - blockHeight < m_getAncDepth(anc_index) && anc_index > 0:
                anc_index -= 1
            blockHash = self.internalBlock[m_getAncestor(blockHash, anc_index)]

    Note: m_getAncDepth(7) returns 78125


    Nekonium, Deft, MMO, BWS, INDI Fan
    hey guys.. i am admin to a discord with some hundersd coin programmmers and bitcoin related stuff. I would hope to win some more developers for our open community with a lot of job posting: And dont ban me:) https://discord.gg/K6q3j2U
    Can someone help me
    Arber Avdullahu
    Is the chat acitve?
    Nick Savers
    @arberiii what is it that you are looking for?
    Arber Avdullahu
    @nicksavers I want to find the gas cost for running a method of a contract, more specifically of Verify Tx on BTC Relay contract. How can I find it?
    Nick Savers
    @arberiii This is a guide you can use for most methods https://medium.com/@blockchain101/estimating-gas-in-ethereum-b89597748c3f
    Arber Avdullahu
    @nicksavers thanks :D
    Arber Avdullahu
    can I find some white paper or a detailed explanation on how BTCRelay works?
    Adam Skrodzki
    Hi is it online anywhere on ethereum ?