New answers tagged

1

Pre 0.10 versions synced inventories as it was the way they composed a list of blocks that they then recursively request from the peer. It provides multiple benefits over just asking for all blocks since timestamp x (where is the timestamp of the last block we had). The biggest one being that it allows you to check the peer is on the same chain as the ...


1

Begin anew via file > new/restore, enter a unique filename and click ok, Follow on-screen instructions for the rest. This time choose p2sh-segwit if the addresses in your blockchain.info wallet begin with 3 or p2pkh if they begin with 1. Native segwit generates addresses beginning with bc1. I don't think blockchain.info generates native segwit addresses at ...


1

A mnemonic seed phrase can be used to derive an unbounded number of addresses, so you need to supply some additional information, so that the wallet software will know which addresses to derive. This additional information includes the derivation pathway, and the address type. There are some standards developed to specify these variables, see for example ...


0

Filename extensions and file associations You can probably ignore the Adobe icon and messages from Adobe. Microsoft windows decides on the type of a file by using the last part of a files name, the part after the last period (dot), called a filename-extension. For example something.txt is a plain text file that can be edited with Notepad. something.mp3 is ...


0

The problem was that I changed scriptPubKey, which I misinterpreted as scriptOutput of a future transaction. This was an error, scriptPubKey of the last parameter refers to scriptPubKey UTXO.


0

I can't say for sure, but two options come to mind: a) the "price" of financial assets are the current bid/ask and general average of closed transactions. You might have been on the high end of the average. You should verify the deal details before purchase/sale. b) some exchanges charge a premium to the parties, again, know the details before you ...


0

I have tested setting watch-only to true and it gets rid of the errors and the node can still sign.


0

What's different with spending SegWit outputs is that signatures cover input values. In other words, every SegWit input must be accompanied by its input value. Mozilla's documentation says don't use map if you aren't constructing a new array. So I'll use for loop. (because order is important, and for-of is too new) for (let i = 0, k = utxo.length; i < k;...


0

Is the software you're using Bitcoin Core? Then you need to make your software forget your unconfirmed transaction that is not in the mempool, so that you can make it again with a higher fee. When launching your Bitcoin Core, run it with -zapwallettxes. This'll make your wallet forget the unconfirmed transactions relevant to your wallet. You can learn how ...


1

In your script the previous ScriptPubKey is different. If you want create custom script you need to sign manually the transaction, you can't use signrawtransactionwithkey. Bitcoin core sign only the standard transaction


0

That error message is irrelevant. SegWit introduced a new way of producing the hash digest for signing which requires the "amount" being spent to be included during hashing. This "amount" is the value of the output that is being spent not the amount of the new output you create. In your it is 0.02641617 or the actual value 2641617 in satoshi. Your step 4 ...


0

Your signature 3045022100a8174334724185341d5c47fa70a5b6228bc357a6fd98427cc2c31a898136dc44022000886624847174494956e919bb83b2d3b195bca4b7f37aba0e7c391b2c5510b9 for pubkey 0c6027c0017de012eaa0c7c6ee1074f06a1fbc5c15e2b84291ea80bfaea68da7 is wrong. EDIT after btcdeb output: Actually both are wrong. Wild guess: maybe this signature is for the third key and you ...


1

Does that mean that Bitcoin Core implicitly calculates and sets a smart fee for a given block target? Yes that's how fee estimation work (basically statistics are made out of the transactions you relay given their feerate and how many blocks it takes for them to be confirmed). If so what is the priorities if I: Set TX fee explicitly before Set ...


1

This is doable. You can run as many nodes with the same wallets as you want. I imagine you want to do this because the synchronisation process will be faster on another node? After the process is done, you will have to copy the complete blockchain data, not the wallet itself. You might want to consider checking for what your bottleneck is - could be the ...


0

You may use my blockchain parser. It convert dat files to a simple text stream (files), and it is more than easy to change the code for yours needs. For OP_RETURN opcode analysing you need to focus on "script" fields and do some tiny changes for to goal your result. I think that my answer would be helpful for you. But if the question is really about the the ...


1

Most Bitcoin addresses are derived using public key cryptography, so in the same way that our wallet can use a private key to sign a transaction that spends some BTC, it can also use a private key to sign an arbitrary message (in this case, a message that says "I own this address!"). As example: By using the private key that controls a funded bitcoin ...


2

Many clients have not been updated to recognize native segwit addresses, and are unable to deal with the bech32. There should be no real downside to sending to a non-native-segwit address, besides some minor fee increase when you spend the coins.


0

I am unable to find the wallet address anywhere in the application itself. Little confusion here, there is no one wallet <==> one address. Your wallet is handling many keys, hence many addresses. You could see addresses as invoices (it has been proposed to rename them to "invoice addresses" btw). You can (security-wise) but should not (privacy-wise) ...


4

Technically, there is no such thing as a bitcoin. There is only a ledger (the blockchain) that contains transactions. A transaction refers to outputs from previous transactions, and specifies new spendable outputs. A transaction output consists of a Bitcoin address, and an amount. And for practical purposes we pretend as if these amounts represent actual "...


2

Since we have the ephemeral private key which has to be random how can I sign two times the same transaction and get the same signature as Bitcoin RPC does. This "ephemeral private key" is known as a nonce. Bitcoin Core, and most other wallet software, use a technique called Deterministic Nonces. Specifically, they use the algorithm defined in RFC 6979 to ...


0

https://github.com/tenthirtyone/blocktools. this program will help you ,but it doesn't put data to the data base,you need to change it.


1

It is a bug, you should report it.


1

Your node is not fully synced, when you posted this it was only synced up to block 481192 (look at blocks under getinfo). Once the node catches up to the chain tip the tx should display properly.


0

If not a coinbase transaction, you have to spend from an existing output. Thus the input must reference an existing transaction. cannot retrieve the previous tx_hash Maybe the library you are using is the following common semantic: txid for the transaction id (hash without the witness data) tx_hash for the transaction hash (hash with the witness data) ...


0

I would assume the issue is not Bitcoin Core, even with default RPC settings I do see noticeable increase in client performance when using async/await (C# library). My suggestion is to investigate how the client code handles the RPC request/response + block parsing.


3

Yes, indexes is safe to copy. It only contains transaction data and is completely unrelated to the wallet. In fact, indexes used to be part of blocks so with older versions, if you had txindex=1, then copying blocks meant you also copied indexes. Only recently was this separated into its own folder in the datadir.


5

It introduces too much trust into the download source. It's the same thing as just uploading a datadir. You aren't verifying any of the blockchain history; what you download could be a fork of the blockchain. Having such a download completely defeats the point of running a full node. Furthermore, with downloading a pruned datadir, you will have to download ...


Top 50 recent answers are included