Tag Archives: stackexchange

Alright, so I thought I had 0.7 btc in my old bitcoin-qt wallet. When I loaded it up it showed 0.97 which was nice. But when I check the addresses, I only find 0.13. And any amount over that doesnt get confirmed.

What I read I understood that using an old version of core QT may cause the btc to not be transferred back.

Or is it because I have an old wallet file that doesnt include the new receiving addresses?

Unfortunately, after reindexing the Blockchain, my laptop (or rather the task) keeps crashing. I therefore extracted the private keys and created a new electrum wallet.

Now, even the most recent transaction doesnt get shown and my balance is 0.

Happy about any idea or help what went wrong.
Thanks in advance.

I am creating a miner in C++ for solo mining, and am struggling to create the proper coinbase transaction.

Say I have a bc1 address, like bc1qfc7fameteuguetm0kfzypnvf2ju6wppdvj6tkc , what would be and example of a coinbase transaction with this, and how would I get to it?

https://developer.bitcoin.org/reference/transactions.html

01000000 .............................. Version

01 .................................... Number of inputs
| 00000000000000000000000000000000
| 00000000000000000000000000000000 ...  Previous outpoint TXID
| ffffffff ............................ Previous outpoint index
|
| 29 .................................. Bytes in coinbase // height+message below, byte length
| |
| | 03 ................................ Bytes in height
| | | 4e0105 .......................... Height: 328014
| |
| | 062f503253482f0472d35454085fffed
| | f2400000f90f54696d65202620486561
| | 6c74682021 ........................ Arbitrary data // custom data, include extranonce here
| 00000000 ............................ Sequence // i thought this was all Fs?

01 .................................... Output count
| 2c37449500000000 .................... // coinbase value
| ????????????????? ............. // here, how do i properly fill this part??
| 00000000 ............................ Locktime

These are the parts needed to create the data for the transaction.

Everything up to the output, i understand. but i dont know what to put between the coinbase value and locktime. how does the address convert to hex? what OP codes do i need? and is this transaction layout correct?

And then I would then hash it and input it as a new transaction into the block as like so,

tx = {
  "data" : "<hex string mentioned above>",
  "hash" : "<double sha256 of data above>",
}

is that the only data i need for the json?

Thanks in advance.

For 2020-12-02, Crypto51 reports an hourly Bitcoin attack cost of $716,072.
For today, 2021-02-21, Messari reports an hourly Bitcoin attack cost of $3,275,911:

Cost of rental attacks

Both services source the hash rate from WhatToMine and the rental prices from NiceHash.
Crypto51 states that they source the exchange rates from CoinMarketCap, Messari uses "proprietary methods," I assume these don’t differ too much, though.

Do the two services calculate the hourly cost of a rental attack in a fundamentally different way (if so, how) or is there another reason why the total hash rate only increased slightly while the attack cost increased hugely?

I am new to the subject, but as I was studying I wasn’t able to understand something and I would appreciate if anyone could help me.
I understand that in most aspects bitcoin doesn’t rely on trusting the nodes. It’s in the best interest of each node to validate and append blocks broadcasted by other miners, so we can assume that the nodes will do it. It’s in the best interest of each node to validate the transactions they put in a block, otherwise it will be rejected. But why do nodes gain in propagating the transactions they receive? If that’s not how it works, how is the transaction poll created?

I have backed up my wallet.dat file, but now I find myself wondering if bitcoin core stores all newly generated wallets in the same wallet.dat file. Of course this is after having accidentally deleted some files I shouldn’t have. Can I safely restart my computer and download bitcoin core again, and load the old wallet.dat file or should I have seperate wallet.dat files for every newly generated wallet?

iam downloading the 350GB Core database via slow network.
iam not shure, if an correct resume occurs, if i need to breask the transmission.
my question:
is there any risk for inconsistence of bitcoin database, when i start multiple times?
has bitcoin core the ability to resume after stopping download?
That would be an great help to give a clear hint for that

thanks
lutz

I need to restore deleted wallet.dat.

Unfortunately method with searching for

    "x00x00x00x00x01x00x00x00"
    "x00x00x00x00x62x31x05x00"

Did not produced working wallet.

The amount of bitcoins is not substantial at all, but I am thinking for searching for the address itself.

I checked on working bitcoind and wallet.dat does not seems to contain the address

  • not in clear text – e.g. "12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX" (I am using address I know is in the wallet rather than example address)
  • not in hex – "00119B098E2E980A229E139A9ED01A469E518E6F2690AFE11C"

for convestion I am using – http://lenschulwitz.com/base58

wallet.dat does not have password. Does bdb uses some compression?

Any idea if I can search for the address?

How to calculate R,S,Z for raw bitcoin transaction ?

I try many methods and all of these not work for me/

For examle this transaction cf1905de5336258673e1bfc5d25c7de0f701f745d5dc2429006fafe37077d89a (this not raw transaction, but this is example )) )

transaction – cf1905de5336258673e1bfc5d25c7de0f701f745d5dc2429006fafe37077d89a

https://2xoin.com/getRSZfromRawTX/ NOT WORKED FOR MY TRANSACTION LIKE THAT.

ANY HELP PLEASE

Big THX.