texts: Several clients confirmed transactions with the same hash

texts:
We generate a personal bitcoin-address for a payment for each customer. For these purposes, we use the Blockchain.Info API. Today it was discovered that in callback sent by the Blockchain.Info we received the confirmation of two facts of payments to different addresses, the transactions of which have the same hash.

In an attempt to find out the reason, we tried to track the transaction history, but found that its total amount is 11 BTC with dozens of outputs: https://blockchain.info/tx/10665471525e014c295c68dc56d8989fb3979272b60e53430155267e73162e51

So, I have a few questions:

Can transfers of bitcoins to different generated addresses have the
same hash? Why?
Why does the transaction consist of a set of outputs, the total amount
of which is 11 BTC, which is hundreds of times the amount
that customers had to pay us?

Thanks for any help.


texts: Sending funds on same block of received funds. Confirm sending not received?

texts:
My question in quite conceptual:

For creating a raw transaction, I just need the txid from the older transaction and the address to send it. Put the funds, the change, what's left is the fee. Sign it and broadcast it.

Let's say Alice sends to Bob's disposable address some funds. Bob has a "master address". Whatever funds he gets on the disposables addressess he sends to his master one. Bob runs a full node and get the transaction before it gets confirmed on the blockchain.

When Bob receives the broadcasted Alice transaction, Bob gets the raw transaction sent to his disposable address, get the txid, put the funds, put the address of his "master" address, change, fee, sign it and broadcast a new transaction, getting the funds sent from Alice to his master address.

So, now, Alice sends to BobDisp (Bob's disposable address) that sends to Bob. All those transactions have 0 confirmations and are both valid.

For the point of the argument. Alice sent the transaction with 0 (ZERO) fee. Bob signed his transaction with a 'standard' fee (let's say 0.0003 BTC), which has a high priority.

When miners get the transactions to mine, do they know that both have to be on the same block? Or what happens if the block is mined with only 'BobD -> Bob' transaction (without the Alice -> BobD)? Is the block invalid?

The miners won't rescan the whole blockchain to know that the 'BobD -> Bob' uses the funds of a new transaction, right? The Alice transaction could be 50000 blocks old or, in this case, a new one.

PS: not sure if it is clear. thanks


texts: Bitcoin Core What default values should I pass for some positional RPC params in sendtoaddress

texts:
I am trying to use the sendtoaddress rpc method of bitcoin core. From the documentation I read that I can pass "estimate_mode" parameter to estimate a fee. However as I believe json rpc follows positional parameters, so this parameter falls in the 8th position, before this there is another optional parameter named "conf_target". What value should I pass for this parameter?

bitcoin-cli bchtest:qp4uw0why90dht7texkv3nnws4cjml844y5ck8rr3q  0.1 "" "" false false ? "CONSERVATIVE"

What value should I pass in place of '?' ?


texts: Getting "Invalid or non-wallet transaction id" error on transactions definitely from wallet

texts:
Very recently (within the past hour), I've been unable to get transactions for wallet addresses. It also returns 0 received when running getreceivedbyaddress and entering an address that I've definitely paid to. What can I do to track down the source of this problem?
EDIT: I've noticed that getblockcount shows 639523, while https://blockchain.info/q/getblockcount shows 639529. It's been like that on my end for a while, and I'm not sure how to force it to sync.


texts: Altering blockinfo to include valid nonce and extraNonce's in the miner_tests

texts:
I currently work on upgrading an old cryptocurrency (fork of an old bitcoin version) to the latest of Bitcoin that includes a lot of tests.

I currently am stuck with making this test succeed: https://github.com/bitcoin/bitcoin/blob/2971fd030f6e20ff5279bd86ba18acc5e5ed1ce9/src/test/miner_tests.cpp#L249

I believe this issue is because of the hardcoded data in blockinfo (see: https://github.com/bitcoin/bitcoin/blob/2971fd030f6e20ff5279bd86ba18acc5e5ed1ce9/src/test/miner_tests.cpp#L54)

How do I get blockinfo to update with the right nonce and extraNonce?

I tried different things, including trying to increase the pblock->nNonce by 1 until I hit the right PoW target, but for some reason pblock->GetPoWHash() didn't change after that.

Thanks!


texts: How does the bech32 length-extension mutation weakness work?

texts:
A bech32 address ending with p can be modified be inserting or removing q characters immediately before the final p character to make a new valid bech32 address. Why does this work?

Are there any other similar mutation weaknesses in bech32?

References:

issue raised against bech32 repo
mailing list post


texts: How to search for an address in last block?

texts:
I want to check in bitcoin-core and see if there is any of my watching addresses in last block.
So my question is how can I know a specific address is included in last block or not?
I can search with getblock <hash> 2 but it returns only addresses in vout and I need the ones are in vin too.


texts: What is the maximum idle time for a node to be considered active?

texts:
Maybe I'm wrong but I remember I read somewhere that a node will be considered active for a certain period even if it is not responding for a certain time (something in the order of minutes).

Does anyone know if this is true?

If this is the case, how long is the maximum idle time for a node?


texts:
1/ I do not understand why bitcoin mining is random when hashing is deterministic.
reference : https://en.bitcoin.it/wiki/Nonce
Can the mining pool with the most mining power always win?
What value should nonce be when mining bitcoin ?

Read the above links and learnt that it is easier to increment a nonce than starts with a random one!

2/ And in the following scenario the node which has the most computational power should be able to solve the proof of work fastest. Of course, I am assuming that mining is deterministic.

Suppose every node in the network starts from zero and increment it. The hash of the nonce and the transaction would be executed by each node and the one computing the hash fastest would arrive at the correct nonce the fastest because hashing is deterministic?
What's wrong in my argument?

Thx


texts: PoS (Proof of Stake) what happens to the coin age of the change after I send an amount?

texts:
Ok simple scenario I have 100 'whatever' coins in a PoS wallet, they are mature and have a stake weight that is approaching the weight to stake and forge a block.
I send 1 whatever coin to my freind and get 99 back to the change address, is my stake weight consumed or maintained?

I realise using a fictional coin isnt ideal, if its treated differently in different existing coins that would be useful to know.


texts:
I am trying to create a htlc smart contract manually by writing a script and finding the hex using the btcc compiler. Now node A has to create a transaction using that hex and lock money in that p2sh address for upto 150 blocks. If node B can provide the secret value before 150 blocks then he can claim the coins and if not the it will go back to node A. I am new to this concept and where ever i read about creating transactions they are explaining in a theoretical way and I could not understand what to do the redeem script hex and how to lock money and how will node B claim it before 150 blocks and how will the raw transaction created by node A will be accessible to node B. Can you please give a reference or steps to follow to understand and implement it? I want to start from the basic with step by step guide.

Which documentation should i refer for doing it and what commands should be used and how it should be used?

How to create the p2sh address. And another problem i am facing is that i am getting different hash160 everytime in different website. Not sure which one is accurate. Please guide me.

P.S: I am running bitcoin in regtest mode.
Collapse


texts:
How would I go about installing bitcoind to a specific directory in ubuntu?
https://gist.github.com/rjmacarthy/b56497a81a6497bfabb1
I'm following that instruction but it downloads to .bitcoin by default and I want to change to somewhere else


texts: Testnet Bitcoin wallet: which script in hash addresses?

texts:
Why does the Testnet Wallet create receiving addresses in the form of script hash addresses (prefix 2) instead of "plain" m/n-prefixed addresses? Is there any security reason? And, which script does it hash? I was assuming, from BIP.16, a single-signature case:

scriptPubKey: OP_HASH160 [20-byte-hash of {[pubkey] OP_CHECKSIG} ]
OP_EQUAL

But I was not able to obtain the same script hash (of course I know the private key). I tried the following steps:

$ echo [02b6d...public key...47f89] checksig > script
$ bx script-encode < script | bx sha256 | bx ripemd160
046f...fb3
$ echo hash160 [046f...fb3] equal > script2
$ bx script-encode < script2 | bx sha256 | bx ripemd160 | bx base58check-encode --version 196
2NxxxexxxxxL

(I had expected to get the same result built by the wallet, but they were different).
Please note that I know for sure both the private and public keys.


texts: How accessible is Bitcoin to blind people?

texts:
Is it easy or hard for blind people to trade bitcoin if they have the appropriate assistive technology? It is easy or hard for blind people to work at tasks involving bitcoin such as utilizing computers for mining, or confirming transactions on the blockchain?

What kinds of technologies would they likely find beneficial?


texts: 32k Transaction Size, 0.0005 Fees. Will it ever be confirmed?

texts:
https://blockchain.info/tx/779afbdbdb03d13743626c8b1028404a6b16e65a2373ab5f744d206f34996c9a?show_adv=true

I made this TX from okcoin with 0.0005 (default) fees.
After 1 day it finally showed up in the blockchain, now after 48h i see no confirmation. The Transaction size seems really high, compared to the
average of 250-500 byte. Will it be confirmed eventually or will mempool reject it ?
I read that happens already after 72h ?
Should I double-spent to cancel it ?

Also, why is it so large ? Could it have been avoided using a new RX address.

Thanks a lot in advance !


texts: Can't we change the block data instead of a nonce?

texts: In the process of solving a hash puzzle, isn't it possible to change the transaction data instead of changing a nonce?


texts: coinbase transaction pending for nearly 6 months

texts: I have sent around 0.2 bitcoin from cex.io to coinbase on june 30th and it is still pending up until now. I have tried some transaction accelerator services but when i type in my transaction id it says the transaction has already been comfirmed so i don't know what the cause of the problem is now.. can someone help me? the transation id is 3be4238159edad9e54370a32ef1bad556e98c26d8ab5fd181de3a4b972e8351f. Thank you.


texts:
I have run a full node on linux
now I can run commands with bitcoin-cli like:

bitcoin-cli getbestblockhash

it returns:

0000000000344240308f54ded700542571b3df9efe05fab92e669099e20e0d92

or

bitcoin-cli getblockcount

82273

but I can't know where should I change get block to get headers:

https://bitcoin.org/en/developer-reference#getheaders

I want to get all headers instead of total blocks to have a SVP node.


texts:
(I guess this question in principle applies likewise to Bitcoin, but given how un-profitable CPU mining of Bitcoin seems to be, this question actually arose with regards to Yacoin mining).

I am currently using the AVX version of the 64-bit Windows miner whose link can be found on Yacoin's homepage.  As with all forks of minerd, you can specify how many threats minerd should use for mining.  It seems as if the default number it uses is the number of logical processors, which in my case happens to be 8.  I've tried playing around with this value, however, and it seems that playing around with the number of threads can significantly increase my hash-rate (of course it can also decrease it).  I guess this came as a bit of a surprise as I just assumed that the default thread count would have been the most efficient.

There is also the variable of how many workers I have running on the pool (in my case, yac.coinmine.pl) and how many processes of minerd I am running.

This means that there are various combinations of process count / thread count I could play around with to try to find the most efficient combination, but before I figured I'd spend the time playing with these various possibilities, it would be easier to just ask someone who has a better idea of how this actually works:  Is there any reason it would be beneficial to run 8 instances of minerd with 1 thread each vs 1 instance of minerd with 8 threads each?  Perhaps in principle there shouldn't be, but because I'm mining in a pool the fact that separate instances require separate workers makes a difference?  What should be an ideal thread count and why should this actually be an efficient thread count to use?  For example, using 16 threads seems to improve my hash-rate over that of just using 8, but doubling again to 32 threads seems to lower the hash-rate again.  Why would this be the case?

As a separate but related question, why does my hash-rate seem to slow the longer the miner runs?


texts:
I want to build an mobile application which tells you how much your bitcoins are worth in USD. I would like to know of good API that I can rely on for data. As well as historic conversion rates over time.

Example.

I have 5 bitcoins -> which are worth 5031 USD.

Bonus points for other alt-currencies included in said API.

I would like something that isn't linked to a particular service or exchange.


texts: what are the chances of vanitygen address - private key pair collision?

texts: With no random number seed specified, assuming all vanitygen runs start with specific chunk for iteration, what are the possibilities of two different vanitygen runs to end up with the same address - private key pair?


texts:
I`m slowly implementing some Bitcoin protocols, and I'm not sure how to properly understand the Merkle Tree from the Bitcoin wiki:
https://en.bitcoin.it/wiki/Protocol_specification#Merkle_Trees
I have strings a, b, c, I double-hash them and I get the three leaf nodes. But I'm not sure what to do with the higher nodes. Do I double hash the sum of the resulting bytes (treating them like big numbers), or do I concatenate (treating them like strings), or perhaps do I should something else?


texts: What exactly is sol/s as far as a hash rate is concerned?

texts:
What is sol/s? Is it the same as MH/s? Please don't answer it depends, because that makes no sense!
I have already tried googling this question but to no avail.


texts: Is there any site or resource where I can learn how to do security transactions while trading on bitcoin testnet


texts:
I'm completely new to Bitcoin but finding it all very interesting so far! My Bitcoin-qt wallet has been synchronising for literally days now (2 days actually) but it is getting closer, on 91% now. My question is, if I was to buy a Bitcoin from MtGox or somewhere, would I have to wait for the synchronisation to complete before I could see my coins? My transfer would have to be confirmed on the block chain through mining and would be the latest on the chain meaning I'd have to wait until it came through right? Would you wait it out?

Thanks,


texts:
I have installed Blockchain.com platform on our server and ran some codes successfully based on its Wallet APIs. Regarding to what is said here, as we are testing this platform, we charged the created wallet with .00000546 BTC. But while using payment API, we received this result:

{
  "error": "Insufficient funds",
  "available": 0.00000546,
  "needed": 0.00001092,
  "sweep_amount_satoshi": 0,
  "sweep_fee_satoshi": 678
}

I can't understand why am I getting this error, and specially, how the amount of needed variable is calculated? May you help me please?


texts: Exported wallet.dat from bitcoin-qt. Then uninstalled bitcoin-qt. Now the wallet is empty!

texts:
Some months ago, I installed bitcoin-qt on Ubuntu, created a wallet and address, then transferred funds to it from MtGox. I let it sync up for over 10 days, but it never fully synced. So I exported a wallet.dat file, then uninstalled bitcoin-qt.

Today, I installed MultiBit and imported the wallet.dat file. It is empty. It has one address which shows no transactions or balance on blockchain.info. The wallet in bitcoin-qt had several addresses.

What happened? Is there anything I can do to restore the files containing my bitcoin?


texts: I just sent bitcoins from one wallet to another to make my life easier. This was the goal, anyway. My balance in my new wallet went up, but it's still not available after 3 hours. Why might this be? I'm using MultiBit on Mac OS X.


texts: How to SignRawTransaction from p2sh with bitcoinj?

texts:
Looking for demo to signrawtransaction from p2sh with bitcoinj!!!
This is bitcoinj code:

org.bitcoinj.core.Transaction

public TransactionInput addSignedInput(TransactionOutPoint prevOut, Script scriptPubKey, ECKey sigKey, Transaction.SigHash sigHash, boolean anyoneCanPay) throws ScriptException {
        Preconditions.checkState(!this.outputs.isEmpty(), "Attempting to sign tx without outputs.");
        TransactionInput input = new TransactionInput(this.params, this, new byte[0], prevOut);
        this.addInput(input);
        int inputIndex = this.inputs.size() - 1;
        TransactionSignature signature;
        if (ScriptPattern.isP2PK(scriptPubKey)) {
            signature = this.calculateSignature(inputIndex, sigKey, scriptPubKey, sigHash, anyoneCanPay);
            input.setScriptSig(ScriptBuilder.createInputScript(signature));
            input.setWitness((TransactionWitness)null);
        } else if (ScriptPattern.isP2PKH(scriptPubKey)) {
            signature = this.calculateSignature(inputIndex, sigKey, scriptPubKey, sigHash, anyoneCanPay);
            input.setScriptSig(ScriptBuilder.createInputScript(signature, sigKey));
            input.setWitness((TransactionWitness)null);
        } else {
            if (!ScriptPattern.isP2WPKH(scriptPubKey)) {
                throw new ScriptException(ScriptError.SCRIPT_ERR_UNKNOWN_ERROR, "Don't know how to sign for this kind of scriptPubKey: " + scriptPubKey);
            }

            Script scriptCode = ScriptBuilder.createP2PKHOutputScript(sigKey);
            TransactionSignature signature = this.calculateWitnessSignature(inputIndex, sigKey, scriptCode, input.getValue(), sigHash, anyoneCanPay);
            input.setScriptSig(ScriptBuilder.createEmpty());
            input.setWitness(TransactionWitness.redeemP2WPKH(signature, sigKey));
        }

        return input;
    }

I can not use [addSignedInput], So my code is:
utxos.forEach( it -> {
                   TransactionOutPoint outPoint = new TransactionOutPoint(PARAMS, it.getIndex(), it.getHash());
                    if (ScriptPattern.isP2SH(it.getScript())) {
                        // TODO
                        TransactionInput input = new TransactionInput(PARAMS, tx, new byte[0], outPoint, it.getValue());
                        tx.addInput(input);

                        Script redeemScript = ScriptBuilder.createRedeemScript(1, Arrays.asList(key));
                        Sha256Hash sighash = tx.hashForSignature(0, redeemScript, Transaction.SigHash.ALL, false);
                        ECKey.ECDSASignature cSignature = key.sign(sighash);
                        TransactionSignature cTransactionSignature = new TransactionSignature(cSignature, Transaction.SigHash.ALL, false);
                        Script inputScript = ScriptBuilder.createP2SHMultiSigInputScript(ImmutableList.of(cTransactionSignature), it.getScript());

                        input.setScriptSig(inputScript);
//                        input.verify();
                    } else {
                        tx.addSignedInput(outPoint, it.getScript(), key, Transaction.SigHash.ALL, true);
                    }
                }
        );

There is a problem with the code above，Maybe my redeemScript us error, So everyone has a better way.


texts: Bitcoin QT - why do I have an undefined reference to `qInitResources_bitcoin() error

texts:
I have built the Bitcoin source code, created my own genesis block and everything was working great! Now that I have changed the word bitcoin to GELF in some places of the program to suit my own software's name, I am running into plenty of issues with undefined references. I cannot seem to work out why I am having this undefined particular undefined reference when I run make. Here is my error output:

make
make[1]: Entering directory '/home/q/Desktop/GELF-master/src'
make[2]: Entering directory '/home/q/Desktop/GELF-master'
make[2]: Leaving directory '/home/q/Desktop/GELF-master'
  OBJCXXLD qt/GELF-qt
qt/qt_GELF_qt-bitcoin.o: In function `main':
/home/q/Desktop/GELF-master/src/qt/bitcoin.cpp:548: undefined reference to `qInitResources_bitcoin()'
collect2: error: ld returned 1 exit status
Makefile:3701: recipe for target 'qt/GELF-qt' failed
make[1]: *** [qt/GELF-qt] Error 1
make[1]: Leaving directory '/home/q/Desktop/GELF-master/src'
Makefile:9475: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

I can't find anywhere in the code where this function is defined! Here is the line that is breaking:

Q_INIT_RESOURCE(bitcoin);

What does this function do? It isn't anywhere to be seen in the developer reference. How can I resolve this error?


texts:
This previous answer shows that BIP34 adds block height as one of the fields in a coinbase transaction of a block. This question is about whether block height is calculated fully independently by each node, or the miner gets to influence it somehow (even by providing a garbled value that'll be considered only temporarily, i.e, before the validation of his supplied height fails).

Concrete questions:

Does this miner-chosen coinbase block height play any role in the determination of the actual block height when other nodes add this block in the chain?
Is the coinbase block height value "validated" by other nodes and if yes, where in the source code?
Is there any other imaginable situation/way a miner could pass a garbled height value and try to confuse other nodes?


texts:
I'm doing an essay on Bitcoin and other cryptocurrencies and came across the Bitcoin Rich List ( https://bitinfocharts.com/top-100-richest-bitcoin-addresses.html). However, I only want to use reliable sources of information.

Therefore, I would be very grateful for your comments on how reliable a source this is. If anyone knows of other sources regarding Bitcoin's distribution, I would be grateful for help with this as well. Thank you very much!


texts: How do miners/clients prove a transaction is valid?

texts:
To prove a transaction is valid, you must prove that the source address has a balance at least as much as the transaction. How does one prove this in a performant manner? The block chain of bitcoin last I checked is 16G. Surely miners don't scan through 16G of data to check every block to track all transactions that address has ever had.

How do miners and clients speed this up to a fast and cheap operation?


texts: How can a cryptocurrency demotivate investment in favour of continued transactions?

texts:
Is it economically and practically possible to create a system where investment cannot take place?(or if it does, it doesn't affect the system in a big way like Bitcoin had extremely high prices due to low supply and high demand)

What I thought of is a system where after a certain threshold(coins*time_left_inactive) the coins return to the system as a reward to every miner proportional to the hashing power they provide the system with.

But this has a problem, in order to bypass said limitation one can just continue transactions between two(or more) wallets and miners would be mining fake(I couldn't think of a better term here) transactions, greatly increasing the hashing power the system requires unnecessarily.

I don't know of any existing currencies that tackle said problem(Obviously)
So if there are any, please let me know, I'd like to look into 'em.


texts: Get transaction history of address using electrum commands

texts:
I am using electrum protocol to query history of a bitcoin address using blockchain.address.get_history.

All is good I am receiving the tx data for every transaction. My problem is that I unable to figure out a way to get the fee and transaction details for every tx received. ( I want to use same stratum protocol if possible )

Thanks


texts:
I'm trying to make a simple program that can reliably upload an OP_RETURN transaction. I have found some examples online, but so far they don't work consistently. The ones that go through seem to be random. Here are the transactions that went through

https://blockchain.info/address/1Eoo7G7u97EMwptSxjYjpvdx9zYcqJBn9y

It is very hit or miss every time I try. I have been entirely unable to upload any transactions using the script, however once in a while if I upload the raw transaction using blockchain they go through. Any ideas? Here is the error message.

Traceback (most recent call last):
  File "/Users/JC/Documents/DevelopmentStuff/programming /Python/bit/op-return_test2.py", line 51, in <module>
    print(pushtx(tx))
  File "/Library/Python/2.7/site-packages/bitcoin/bci.py", line 237, in pushtx
    return f(*args)
  File "/Library/Python/2.7/site-packages/bitcoin/bci.py", line 192, in bci_pushtx
    return make_request('https://blockchain.info/pushtx', 'tx='+tx)
  File "/Library/Python/2.7/site-packages/bitcoin/bci.py", line 23, in make_request
    raise Exception(p)
Exception: None Standard Script Output OP_RETURN 48656c6c6f

Here is the code. I would really appreciate any help. Thanks

# coding: utf-8

from bitcoin import *
import binascii
from test import *

priv = "Private key"

pub = "1Eoo7G7u97EMwptSxjYjpvdx9zYcqJBn9y"

addr= "1Eoo7G7u97EMwptSxjYjpvdx9zYcqJBn9y"
inputs = unspent(addr)

message = "Hello"
FullLen = format(len(message)+2,'x').rjust(2,'0')
MessageLen = format(len(message),'x').rjust(2,'0')
ID = binascii.hexlify(str(message))
#snd = "6a4c28"+ID
snd = "6a"+MessageLen+ID
print hexlify(chr(len(message)))
print MessageLen
print snd
#snd = "6a4c"+MessageLen+ID
#print snd
newScriptPubKey = "6a" + hexlify(chr(len(message)))+ hexlify(message)
#print newScriptPubKey

outputs = [{'value': 50000, 'address': addr}, {'value': 0, 'script': snd}]

fee = 10000

tx = mksend(inputs, outputs, addr, fee)

dt = deserialize(tx)
ins = dt['ins']

#print addr
#print ins

print tx
for ind, elm in enumerate(ins):
    print elm
    tx = sign(tx, ind, priv)

print tx

print(pushtx(tx)) # Error is raised on this line


texts: What is txid and scriptPubKey in bitcore UnspentOutput function and where can I get those data?

texts:
I am following this tutorial https://github.com/bitpay/bitcore/blob/master/packages/bitcore-lib/docs/unspentoutput.md and it is not clear what the txid, scriptPubKey and where to get those data
var utxo = new UnspentOutput({
  "txid" : "a0a08e397203df68392ee95b3f08b0b3b3e2401410a38d46ae0874f74846f2e9",
  "vout" : 0,
  "address" : "mgJT8iegL4f9NCgQFeFyfvnSw1Yj4M5Woi",
  "scriptPubKey" : "76a914089acaba6af8b2b4fb4bed3b747ab1e4e60b496588ac",
  "amount" : 0.00070000
});
var utxo = new UnspentOutput({
  "txId" : "a0a08e397203df68392ee95b3f08b0b3b3e2401410a38d46ae0874f74846f2e9",
  "outputIndex" : 0,
  "address" : "mgJT8iegL4f9NCgQFeFyfvnSw1Yj4M5Woi",
  "script" : "76a914089acaba6af8b2b4fb4bed3b747ab1e4e60b496588ac",
  "satoshis" : 70000
});


texts: Does BIP70 have any problem (security/privacy/etc)? Why will Bitcoin Core disable it by default in the next major release (0.19.0)?

texts:
Recently it's reported that Bitcoin Core will disable BIP70 support by default in the next major release (0.19.0): https://cointelegraph.com/news/sorry-bitpay-new-bitcoin-upgrade-proposal-disables-bip70-by-default

I heard that BIP70 was controversy, especially when BitPay started to force their users to pay through BIP70 since 1 year ago or so, instead of showing the bitcoin address directly to the user.

What's the problem BIP70 was supposed to solve? Does BIP70 actually provide any advantage or disadvantage? Why did so many people oppose it?


texts: Can I speed up the running of functional tests?

texts:
I am running the Bitcoin Core functional tests using the test runner and it is taking a long time to get through all the tests. Is there a way to speed it up?
test/functional/test_runner.py --extended


texts: What is the largest transaction by value to date for bitcoin currency?

texts: As the title asked - what is the largest transaction by value to date?


texts:
If I send a query

{"method":"sign","params":[{"secret":"shU9DWXZ1bhtaZRipiCedMUn1B2Gg","tx_json":{"Amount":9000000000,"Account":"rPa8RMPnEJxW4dpkJhnqj7GQYUB9PQ5gEW","Destination":"rH7k1edohG2XCBuTiB8RrMaKRgi2wNkXYg","DestinationTag":100008276,"TransactionType":"Payment"}}]}

The testnet Ripple server (https://s.altnet.rippletest.net:51234) give me

Unable to parse request: * Line 1, Column 90 '9000000000' exceeds the allowable range.

How can I send more than 9000 XRP at one transaction?


texts: How much disk space does it take to run a blockchain explorer?

texts:
I understand that you can use existing explorers like blockchain.info for quick access to individual transactions and address balances, however I would like to run an explorer of my own Like Hyperledger or iquidus -- So that I can have quick access to indexed account balances.

I need to know how much space this will take initially -- And understand it will vary based on how big the chain has gotten, but a rough ratio of block height to disk space would be quite useful here.


texts: With Miniscript why is it not possible to invert conditions with something like not()?

texts:
This question was asked by Luke Childs (@lukechilds) on Twitter.

In Miniscript would it be possible to invert conditions with something like not()? Could you essentially create a younger() out of not(older())?

e.g. or(and(pk(Alice),not(older(12960))),and(pk(Bob),older(12960)))

The UTXO ownership transfers from Alice to Bob after 90 days.

I see that that won't work because CHECKSEQUENCEVERIFY doesn't return a boolean. But why is being able to invalidate a condition or completely change the conditions after a certain point in time bad?

e.g.
X can only happen before N, Y can only happen after N


texts: How does the Electrum wallet encryption work?

texts:
Nube bitcoin question...  I created an electrum wallet, and can find it under appdata on my windows machine.  When creating it I set up a pass phrase and password.  I sent a small transaction into one of the addresses.

I read in https://en.bitcoin.it/wiki/Electrum/Documentation that this procedure should encrypt the wallet.dat file.  Looking at the wallet.dat in a text editor before restarting electum, it does not appear encrypted in it's entirety, and to me it is not obvious what in there is encrypted.  Perhaps only the private keys are encrypted?  Also when I start up electrum, there is no prompt for a password to decrypt anything.

Is it explained anywhere how I can see evidence that encryption is in place?  Perhaps I should take that small amount of bitcoin now in my wallet and figure out how to send it somewhere else, and it will all become clear?


texts: How can a closing transaction in LN have more than 2 outputs?

texts:
I collected some data regarding closing transactions of channels in LN and I see that a small percentage of them have more than two outputs. How is this possible?

An example of such closing transaction type:
1235c0196785ea2e538fb5f3e45caeb17fc457c089a9f4a4bb01f1221539159a


texts: Bitcoins transaction is completed but I don't get the coins

texts:
I got the bitcoins but it's not getting added to my wallet, I even got the email etc. and it shows up but see this

Transaction is not available at this time


texts: Which block explorers recognize bech32 addresses?

texts: At this time, blockchain.info doesn't. Neither does blockchair or blockcypher.


texts: Unexpected behaviour Bitcoin RPC getbalance

texts:
I am seeing a smaller amount of BTC when I run ./bitcoin-cli getbalance compared to ./bitcoin-cli getbalance "" Here is the documentation on GetBalance from the BTC wiki, which highlights why I am confused

getbalance [account] [minconf=1]

If [account] is not specified, returns the server's total available balance.
If [account] is specified, returns the balance in the account.

If no account is specified, it should return the server's total balance, and yet here is my result:

./bitcoin-cli getbalance --- 0.00001250

./bitcoin-cli getbalance "" --- 0.34869089

Why is this happening?


texts: Transaction deserialization test vectors for Elements sidechain?

texts:
I'm working on adding support for Elements sidechain to  https://github.com/Simplexum/python-bitcointx/ library.

Transaction serialization/deserialization seems to be working, but to test it properly, I need samples of different transactions (with or without assets, confidential/unconfidential etc).

Preparing these samples by hand is tedious. Elements source contain tx_valid.json data, but it seems to contain only bitcoin transactions - if you try to decoderawtransaction() some of the data from that file with elements-cli, you get "TX decode failed"

I am not sure if it is possible to get real transactions from Liquid network - while blockstream.info have an explorer for Liquid, it does not show raw transaction data.

Is there a chance to get such sample data somewhere (besides generating it myself) ?


texts: Could a hacker replace Bitcoin QT in some Linux repository and steal Bitcoins?

texts:
Bitcoin QT, being a Linux application, is updated regularly when the application in the repository is being updated (For example, apt-get upgrade on Debian).

Theoretically, if a hacker could get into some Linux repository, he could replace the application with a malicious one that steals both the private key and the wallet file and send it to a remote server (effectively stealing all the Bitcoins from most the users).
If possible, even through social engineering, the incentive for such hack is enormous.

How likely/unlikely that to happen?


texts: How would one go about creating a single signature P2SH transaction? (Analogous to a "2 of 3 multisig P2SH" but instead I'm asking about a "1 of 1".)  Would one wrap a standard P2PKH scriptPubKey inside of a P2SH redeem script? Or is there a better/preferred way of achieving this? Thank you.


texts: When develop a mobile cryptocurrency wallet, is there any good practice to store private key?

texts: As i know, some wallet like electrum store private keys in client filesystem with encrypted and other web wallet like ether metamask store it on browser storage. And in the mobile wallet, is there any good practice to store private key?


texts: How would segwit help bitcoin services like, blockstream profit, and miners to loose?

texts:
Segwit in the current form,

How would it affect miners except, asicboost?

How would blockstream (other than miners) kind of companies benefit from it, in such a way that miners can't?

I'm looking for a technical answer, and please avoid opinion based answers.


texts: Bitcoins stuck - No double spend possible

texts:
I have a problem with my address 1Dss5sKJDZ1Kkhh3KRyoekeZpC4S1WehD. As you can see, I transferred money to the same address by mistake - without any fee. The transaction fcd06b91d4572dca5b36f3f634694db036f80c2f27c079797f7379ad348a8f00 is now unconfirmed.

Later, it was possible to create the transaction 8218e7821939421302084e6ae9d64960f1e11f03cd2f1e1c3c98a2079416dee2, but this also do not get confirmed - but even there is a fee.

For now, I cannot create any another transaction - why? The other transactions are unconfirmed and not in the blockchain. I try to broadcast the new transaction in raw format to the network.

What should I do now? Just wait?


texts:
Good Day All.

Senario. If i pay ransom-ware to bitcoin address "aaabbbccc". I can tell via blockchain when it goes through. I would just like to know am i able to trace all transactions from wallet "aaabbbccc" to another wallet "xxyyyzzz". then from "xxxyyyzzz" all transactions from then onwards.

And if one can do this, at somepoint the money must make it to real currency and or goods. which must be linked to a person or delivery address.

So if like that why cant they trace the ransomware culpirits.

Thanks very much


texts:
A miner can identify himself when he receive  his coinbase transaction, we can view them on website offering block explorer like https://www.blockchain.com/charts/pools
Some of these miners are listed as Unknown because blockchain.com has been unable to identify them

A large portion of Unknown blocks does not mean an attack on the network, it simply means we have been unable to determine the origin.

But when we click on one of those block mined by an Unknown miner we can see that most of them reuse the same addresses for their coinbase transaction but blockchain.com does not seem to list those reused Unknown address, is there a place to see a listing of those unknown reused addresses so that we can know how concentrated those miners are, or at least what they want us to know because I guess each time it could have been the same miner using a different addresses.


texts: Why doesn't BTC reward miners for confirmations, too?

texts:
Currently as far as I know when a miner discovers enough 0s, he
broadcasts his solution to the network in order to win the coins.
While, he broadcasts his solution (which gave him the 0s), he also
verifies some transactions.
When miner verifies transactions, the gives priority to the transaction
that pays the highest confirmation fee.
As far as I understand, when the miner verifies transactions that do not
pay any confirmation fees, the miner doesn't get any rewards for doing so.
In such a case, the miner has absolutely no reason to care to verify it.
If the miner verifies such a fee-less transaction, he does it purely
because he is just a kind person, but no monetary incentives for this act.
My question is: why doesn't the BTC protocol define the BTC reward
function as a function of the solves 0s and as a function of number of
confirmations?
Specifically, I propose this reward function:
btc_reward = ZEROS_DISCOVER_REWARD
for transaction in confirmations:
    already_has_n_confirms = get_confirms_num(transaction)
    confirm_reward_rate += L / (1 + E**(K*already_has_n_confirms)
    btc_reward += confirm_reward_rate * CONFIRM_REWARD
    btc_reward += confirmation_fee # could be zero, and miners would still
                                   # have incentives to confirm, because
                                   # the btc network still rewards by
    other means.

where L, E, K and CONFIRM_REWARD are variables that need to be
tuned to adjust BTC's inflation/deflation targets (similar to like how
ZEROS_DISCOVER_REWARD is defined).
Of course this is just a suggestion for funrction with an exponential decay
as a function of number of confirmations a transaction already has.  E.g.
transactions with no confirmations are in a more disperate situation to get
some confirmation that other transactions that have, say, 10 confirmation
salready.
This way, miners will have a monetary incentive to confirm all transactions
even those that pay no confirmation fees, which will effectively reduce
the resistance against trade in the BTC world, and make BTC even more
attractive.
At the same time, people who are in a hurry can still put
their fees to get their confirmations faster.  But at least, those who are
engaging in a low-cost economy that is sensitive to fees at least have the
liberty of having a free monetary system.
Any thoughts on why this isn't done?


texts: Which pools offer payouts via generation? (Eligius-style payouts)

texts: As the title says, which pools offer payouts to miners directly in the generation transaction of the block, as in Eligius?


texts:
Is there any advanced trading software available for windows platform? I came across goxtool, which is pretty much what I'd like to try, but runs only on linux.

I am looking for a client that offers more than just simple buy/sell orders - I don't mind if coding is involved (python, matlab, c++, whatever), I'd like to experiment with custom trading bots in small amounts of BTC.


texts: How can SPV nodes trust received Open Assets?

texts:
I was reading over the specification for the Open Assets (colored coins) protocol. It seems that keeping track of Asset ownership requires looking up the scriptPubKey for each input in a transaction, and possibly even recursively looking up the prevouts for inputs, in order to verify the chain of ownership. Full nodes can do this, as they process all blockchain data.

However, it's possible to make a transaction that looks like a valid Open Assets transaction, but that breaks the link in ownership somewhere along the way. More confirmations won't help convince SPV nodes that the transaction is a valid OA transaction, as miners do not enforce that all transactions structured as OA transactions are actually valid.

Can SPV nodes participate in the Open Asset protocol with any reasonable security?


texts:
I made an account "hello" in bitcoin daemon and wanted to run this. Whenever i put in hello when prompted, getac1 would return empty array; whereas, getac2 and getac3 returns addresses associated with account hello. What am I missing?
Assume I put in proper username, password, ip address, and port.

<?php
require('easybitcoin.php');
$bitcoin = new Bitcoin("username", "password", "ip address", "8332");
//prompt function
function prompt($prompt_msg){
   echo("<script type='text/javascript'> var answer = prompt('".$prompt_msg."'); </script>");
   $answer = "<script type='text/javascript'> document.write(answer); </script>";
   return($answer);
}

//program
$prompt_msg = "Please enter account name";
$name = prompt($prompt_msg);

$getac1 = $bitcoin->getaddressesbyaccount($name);
$getac2 = $bitcoin->getaddressesbyaccount("hello");
$getac3 = $bitcoin->getaddressesbyaccount(hello);

print_r($getac1);
print_r($getac2);
print_r($getac3);
print_r($name);
echo "</pre>";
?>


texts:
Sending bitcoin to My BTC-e account from CoinBase---I could send Bitcoin to my BTC-e wallet, but I forgot how to recover my BTC-e public address?  My mind is blank.  Duh!

Sending bitcoin to my Coinbase wallet? I can buy and sell bitcoin in BTC-e, but I want to send it to Coinbase. What is the procedure? I have done this, but again I have been playing with different wallets and I cannot think of how I did it! no help from support


texts: What is the standard protocol for pools/miners?

texts: The Bitcoin client protocol is well documented in the Bitcoin Wiki, but I can't find much on the protocol used by pools and miners. Is it described anywhere?


texts: Can a mobile be protected against the "Linode problem"?

texts:
The "Linode problem" I'm referring to is where an external trusted party has administrative control over your device.

Mobile phones are essentially managed devices.  They can be fully controlled by someone other than the owner of the device.

Yes, they are managed by the carrier but possibly that carrier has people that cannot be trusted or, something just as bad, has people who don't maintain secure systems themselves such as what reportedly is what happened at Linode.

The importance is this.  Consider Safaricom's M-Pesa mobile payments system used widely by those in Kenya.

An attack that defrauds M-Pesa's users en mass means that at some point Safaricom figures out that there's a problem, halts all affected systems to prevent further losses, and in the end eats some, most or all of the customer's losses.

With a mobile app like BitcoinSpinner, or My Wallet from BlockChain.info or even a hosted service like Paytunia's online wallet, the risks are quite different from M-Pesa's.  The carrier doesn't promote the Bitcoin app nor offer any guarantees.  A similar attack through the managed services of the mobile carrier's network to steal bitcoins from mobiles would cause the finanical losses to afflict the individual mobile user alone.

Just like how Linode disavowed any responsibility to Slush, Bitcoinica, etc. for the tens of thousands of bitcoins lost, carriers such as AT&T, Vodafone and Safaricom would likely maintain the same type of position.

So, this is a fundamental question -- is the practice of storing bitcoin private keys on the mobile something that exposes it to so much risk that it shouldn't even be considered (at least, not for amounts greater than the amount of cash one might carry in a back pocket?)

Or are there ways to secure a mobile device so that even if some piece of malware is deployed by a carrier's rogue employee that the bitcoins would still be secure?


texts: How to stream transactions on the network

texts:
How would I go about getting a stream of transactions broadcast on the Bitcoin network? Is this supported by the vanilla client?

I know that the client can notify me on new blocks and on all transactions that effect an address in my wallet, but I want to stream ALL transactions on the network.


texts: How are keys for lightning channels currently created?

texts:
Keys for creating lightning channels seem to be derived differently than in usual bitcoin wallets. Lightning node data corruption, despite backup of master seed phrase, seems to prevent recovery of channel keys. How are channel keys currently derived, and why is recovering these keys with a corrupted node extremely difficult?

This question is in response to #3 of the following video (timestamped) https://www.youtube.com/watch?v=5fMv8MpzLgQ&feature=youtu.be&t=143


texts:
Currently i'm working with bitcoin-qt for a while and now i have some issue that i wanna ask.

-Is there a way to create transaction then submit it to network from wallet that NOT inside this bitcoin core. Currently i only know that we only can create transaction for only account/address in our node.
So can anyone have any idea ?


texts: What are the risks of running an online store via a bitcoind connection using less than the minimum of 8 connections?

texts:
I have 1GB of memory to work with on my VPS.

I want to run bitcoind as well as a few other crypto currency daemons.

As it stands, number of connections seem to be the only value I can change that has any impact on my memory usage.

I have bitcoind set to 10 connections at the moment and it is consuming a steady 400MB of memory during this time.

What are the consequences of lowering the number of connections to say 2 or 1?


texts: How to use MySQLFullPrunedBlockStore with bitcoinj-core-0.13-bundled.jar

texts:
Initailly i am using bitcoinj-core-0.12.2.jar and bitcoinj-tools-0.12.2.jar on my project.Now i updated it with bitcoinj-core-0.13-bundled.jar because i am assuming that bitcoinj-core-0.13-bundled is providing support for MySQLFullPrunedBlockStore.

I have created a new database in mysql with bitcoinj when i run-app my grails app it create following tables
headers
openoutputs
settings
undoableblocks

and show following error
| Error org.bitcoinj.store.BlockStoreException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'bitcoinj.undoableBlocks' doesn't exist

To remove this error i have renamed table undoableblocks with undoableBlocks.

and i again run-app my app and it show following error
| Error org.bitcoinj.store.BlockStoreException: Database block store is not compatible with the current release.  See bitcoinj release notes for further information: Table 'bitcoinj.openOutputs' doesn't exist

To remove this error i have renamed table openoutputs with openOutputs.

and i again run-app my app and it show following error
| Error org.bitcoinj.store.BlockStoreException: corrupt database block store - no chain head pointer ...

Can anybody tell me how to slove this error.


texts: What is the preferred way to denote orders of magnitude in BTC?

texts:
If I have 36,235.97 BTC, would I shorten that by writing that I have 36.2k BTC or would I write 36.2 kBTC?

It seems that latter is proper for SI units, while the former is used more often for money, at least in the U.S.


texts: How to find a block containing a transaction using transaction hash only?

texts:
Well, the title says it all.
I have  a transaction hash and I want to find this transaction in the blockchain.
I am working with bitcoinj.

I am probably missing something very obvious here, but I cannot find how to do it.


texts: Is PPS or DGM better for pooled mining when difficulty has a high "beta"

texts:
According to this thread on BFL, BFL_Josh says

  PPS may be a better bet for you if you don't like variance. However if you are mining for the long haul, DGM will pay out more but your variance will be higher.

If I expect a few weeks of volatile (spiking or increasing difficulty) and I have sufficient Gh/s, what pool method is best suited for

A steadily increasing difficulty
A fluctuating or rapidly increasing (spiking) difficulty)


texts: Bitcoin ATM paid out to a phone number, how can the funds be retrieved?

texts: A friend was trying to send me bitcoin using a Bitcoin ATM, she sent the funds to "her phone number" instead of my wallet QR code. The ATM indicated that Bitcoin was sent, but my friend doesn't even have a wallet address. It seems like a wallet address was generated for her and we don't know how to retrieve this bitcoin back, can you help?


texts: Is it possible to build pay to script without destination address?

texts:
I am thinking of a transaction that can only be spent if the recipient proves that he has burnt a specific amount of a colored coin.

Because the recipient is not known beforehand, is it possible that the recipient provides the destination address together with the proof when trying to spend the funds, or the destination address has to be always provided when building the scrpit?


texts: What if the bitcoin blockchain grows to the point it cannot be decentralized anymore?

texts:
I read the bitcoin white paper and am in the process of readin ethereum's. The second paper reads at one point : "Currently, this is viable for some desktop computers and not phones, and later on in the future only businesses and hobbyists will be able to participate."

Doesn't this mean that some day the remaining blockchain nodes will only be controlled by the very few ones that have the money and infrastructure required, as the smaller nodes won't be able to stay on the long run ?
Doesn't this mean that as time goes, the blockchain becomes less decentralized and more centralized ?
If so, another consequence would be the decreasing security of the blockchain : the remaning powerful nodes would gain the ability to fake transactions, right ?


texts: Electrum shows "No FX rate available" and balances show "No Data" and last transaction doesn't appear

texts: My Electrum 2.8.2 shows "No FX rate available" at the bottom and shows "No Data" for the balances. Also, I'm missing a transaction that someone said they sent to me. How do I fix this to see my latest transactions and USD balances?


texts:
I am new to bitcoin network but I have spent significant time with ethereum.
For getting started with bitcoin I referred running a full node and Developer documentation- Regtest Mode. After installing bitcoin-qt and bitcoind, I was asked to change the password in bitcoin.conf. But I am unable to locate it in ~/<user>/.bitcoin.

pr.singh@GLTINTERN-W040:~/.bitcoin$ ls
bitcoind.pid  blocks  chainstate  database  db.log  debug.log  regtest  wallet.dat

And so whenever I run any command like bitcoin-cli -regtest generate 101, I get error stating:

  error: Could not locate RPC credentials. No authentication cookie could be found, and no rpcpassword is set in the configuration file (/home/pr.singh/.bitcoin/bitcoin.conf)

Am I missing anything? Also if you guys can provide a good tutorial to start development and  testing in restest network, it will be quite helpful.


texts: For a redeem script to satisfy the conditions of a script what must it leave on the stack post execution?

texts:
I was watching this Andreas Antonopoulos presentation on Advanced Bitcoin Scripting.
It appears from Andreas' examples that for a redeem script to satisfy the conditions of the script it needs to leave TRUE (and nothing else) on the stack after it has been executed. This was also enquired about here.
Therefore there is a VERIFY suffix such that some opcodes (e.g. EQUAL, CHECKSIG, CHECKMULTISIG) have competing opcodes (e.g. EQUALVERIFY, CHECKSIGVERIFY, CHECKMULTISIGVERIFY). Instead of leaving TRUE on the stack these VERIFY opcodes will "continue execution of the Script if the outcome of the conditional operator is TRUE" but "will not push that TRUE back to the stack, it will simply continue execution". These VERIFY opcodes can be used to ensure the execution of the redeem script leave TRUE (and nothing else) on the stack rather than say TRUE TRUE TRUE.
However, in this Bitcoin Core PR review club session Pieter Wuille stated (paraphrasing):

For CLEANSTACK you have to have a stack with a single element in it which has to be nonzero. Without CLEANSTACK a non-empty stack with multiple elements is ok as long as the top element is nonzero

I have two questions:

Presumably TRUE is equivalent to 1 and FALSE is equivalent to 0?

Any opcodes that evaluate to FALSE will result in immediate failure and termination of execution? So with non-CLEANSTACK you would never see a resulting stack of TRUE FALSE TRUE pass as FALSE would result in immediate failure and you wouldn't assess the final TRUE. However, you could see a stack of say TRUE 3 TRUE 5 and this would pass with non-CLEANSTACK. (It would fail with CLEANSTACK as CLEANSTACK must have a single element in the resulting stack).


texts: This is Ripple main Explorer. But where can i find the transactions ledger from wallets on Ripple testnet.


texts: How does the blockchain prevent spending money during a "short fork"?

texts:
I'm currently reading "Mastering Bitcoin" (i haven't finished it tho, but i don't see my answer and it bother me so I prefer asking it here) and there's something i don't understand. So from what I understand the "valid" blockchain is the one which has the most blocks in it. But what happens if :

a "hacker" is lucky with the hash function and manage to add a "wrong" block to the blockchain, in which, let's say that someone gives him 1BTC (even if there is no way to make a false transaction to receive 1BTC, he will at least have the bitcoins from mining a block)
Then the blochain of the "hacker" will have 1 block more than the others, thus it should be, at least for a few minutes, the "valid" blockchain

But what happens if he buy something with this 1BTC during those few minutes ? If for example, he buys a coffee, or some real items ? What prevents him from doing that ?

Is there a rule that makes that you can spend bitcoins from a transaction output only if the transaction is "old enough" (which mean that 3 or 4 blocks has been added after the block that contains the transaction) ?

If so, doesn't it make bitcoin transactions slow to process ? I already know that a transaction can be validated by a full node client and that you don't need to wait 10 minutes for the block to be in the blockchain, but if you need 30 minutes to be able to spend the money, doesn't it make transactions slow ?

Thank you in advance

PS : By the way i'm sorry if the term "short fork" is not the right expression but i didn't know how to call it


texts: In a mining pool, how do shares counting works with vardiff?

texts:
I was reading this very interesting page: https://slushpool.com/help/hashrate-proof/

I read the "How does the mining and hash rate calculation work?" section and with a fixed difficulty for all miners it all made perfect sense. But the there is this phrase:

  The value of 2^32 was chosen arbitrarily in the past, but is stable
  and makes one share well defined. In reality, proof of work value may
  vary from miner to miner, but it is just an implementation detail.

Except that I cannot figure out exactly that "implementation detail". How do you factor variable difficulty of each miner in how you count shares exactly? What would be the exact formula to compute the % of rewards for each miner?


texts: What are "confirmations"when selling Bitcoins?

texts: Bitcoin confirmation. When and how do I make a conformation of a sale. Do I receive a emaIl from you when I sell.


texts: I am searching for a public mining statistics dashboard that lets you see per BTC address/transaction how much was mined, when, and a way of making sure that those Bitcoins indeed come from a miner. It is necessary for tax purposes.


texts: What encourages Bitcoin miners to relay blocks?

texts:
Lets say I'm mining bitcoins, and I've just received a new block that someone else has mined. What encourages me to send that block to anyone else.

I can understand how the original miner wants to send the block around the network (so their block becomes part of the chain) but what incentive do other nodes have to send it around? Wouldn't it be better to not to spread the block, but then build your own block on top of it, in which case you'll then be two blocks ahead and more likely to be added to the chain?

Of course, if everyone does this the result would be terrible, but what incentive is there to encourage people (other than the original miners) to spread blocks besides altruism?


texts: Pls Help! My transactions on multibit HD is yet to be confirmed after 24hrs

texts:
please can anyone help here as I'm a beginner on btc.
I sent some bitcoins but after more than 24 hours is not yet confirmed but shows it has been seen by peers on multibit HD. I have tried on 5 occasions on repair wallet but yet no results.

https://blockchain.info/tx/b57acae08aa1aaff70d8c74bf823e6a5b6f536b1524cc777d9f4e89794ca64bc

3b1b1c3822ab74cad22ca34731cb298d906e04acc741bb5e7fc38b2b333c2ccc

b03eb0087f4c75d4bdfa2e1788a92b1402037f210f17caf71b6a66d73597356c

I decided to transfer my other wallet to a new wallet and still not showing too.

https://blockchain.info/tx/c7309ba1267012506fcb99de79f060935811fc74e049df6e22388b874903192a

Thanks

N.B: fess was set as default, been over 36 hours and the transaction not reflecting on the receiving wallet


texts:
Is it true that the "seed words" bruteforce more reliable for to get profit than searching of a "random number" for to open some profitable outputs?

The last one is impossible due to math, but the first one?


texts: Block chain api support - Im unable to seperate the credit and debit transactions using blockchain api

texts:
I'm using blockchain api to display transactions of credits and debits seperately, I'm using the below procedure for displaying credit and debit transactions. But credit transactions are showing in debit transactions... I mean the credited transaction which need to display in "inputs" index showing in "out".

Clear explanation :

Taking an address as an example: 12RpKRwx7AevwTDJYF94MVDx6vEduFBvHR. If you can the compare transaction list in blockchain.info url https://blockchain.info/address/12RpKRwx7AevwTDJYF94MVDx6vEduFBvHR and json format url https:// blockchain.info/address/12RpKRwx7AevwTDJYF94MVDx6vEduFBvHR?format=json&limit=5, first 2 transactions are showing fine in 'out' index json. But when you see the 3rd transaction in https:// blockchain.info/address/12RpKRwx7AevwTDJYF94MVDx6vEduFBvHR it is incoming transaction, This 3rd transaction is showing in "out" index.

My moto is to show my website users a clear transactions of their address.

Here I need to show list of Incoming and Outgoing transactions from blockchain api seperately, Procedure I'm following as suggested by the blockchain.info support team.

Procedure:

1st api call https:// blockchain.info/address/12RpKRwx7AevwTDJYF94MVDx6vEduFBvHR?format=json&limit=5 . From this api call I'm taking "hash"  index value and passing the to 2nd api call --> https://blockchain.info/rawtx/$hash in the foreach loop . Showing "inputs" index as incoming transactions received to address 12RpKRwx7AevwTDJYF94MVDx6vEduF and "out" as outgoing transactions from 12RpKRwx7AevwTDJYF94MVDx6vEdu.


texts:
Is it possible to confirm a transaction offline in the following scenario:

the "receiving" device is first online. There is no restriction at this point. Especially, it can prepare anything needed for the following steps.
the "receiving" device goes offline. It generates a payment request for a specific amount that was not known before and shares it to the "sending" device via an offline means, such as a QR code for instance.
the "sending" device which is always online, completes the transaction.
How could the "receiving" device, while staying offline, can get a confirmation that the transaction has really occurred? In other words, what should the "sending" device share (by QR code for instance) to the "receiving" device that will let it confirm the transaction without being fooled?

Could the "receiving" device have a public key that would verify a signed version of the transaction?


texts: Create a new receiving address in the behalf of another wallet?

texts:
I want to create an API service that will trigger my local wallet to generate new account with receive address and return that address to a user.

User => API => my_local_wallet => API => User

The user will have this address and will be able to transfer Bitcoins into that address.


texts:
What is the Best way to share the Master Public Key and Master Chain code generated using BIP32 in Bicoins with a user that I don't trust ?

I just want the second user to monitor my wallet and not spend coins. What will be the best way to share my Master Keys ?


texts: How to accept payments via Ripple on a website

texts:
A web search led to Ripple.com.

Is it possible to add the payments via Ripple payment to an e-commerce website?
Where can i find source code to implement such Ripple payments?

For example, there are few websites which offer payment via Ripple such as PrivateInternetAccess.


texts:
I have a problem in exchanging my altcoins, when i tried to convert TokenCard to Ethereum it is showing the following message:

Cancelled: You need some ETH in the same address as your token to pay the gas to send it!

I'm using shapeshift.io for the conversion.

What could be the reason for this?


texts: How to run a litecoin miner behind a proxy server?

texts:
I've downloaded the Windows 64-bit Litecoin mining software as provided from http://pool-x.eu/gettingstarted

I'm trying to run the miner from behind a firewall. My browser uses an HTTP proxy to get to the internet, and as I understand it I should be able to use a similar method to connect my Litecoin miner to a pool.

So far, I've modified the file start.console.bat from:

@echo off

START /LOW /B minerd.exe --algo scrypt --url http://litecoinpool.org:9332/ --userpass username.1:1 --threads 4 -r -1 -s 5

to:

@echo off
set HTTP_PROXY=http://myproxyserver:myport
START /LOW /B minerd.exe --algo scrypt --url http://litecoinpool.org:9332/ --userpass myusername.1:mypassword --threads 4 -r -1 -s 5

I've substituted my values in to take the place of the following values:
myproxyserver
myport
9332
myusername.1
mypassword

When I try using the port my browser uses for the proxy server (for both port values), I get this output when I run it (and it spits out another error every 30 secs):

[2012-07-07 13:57:48] HTTP request failed: The requested URL returned error: 503

[2012-07-07 13:57:48] json_rpc_call failed, retry after 30 seconds
[2012-07-07 13:57:48] 1 miner threads started, using 'scrypt' algorithm.

Should the port number for the proxy and for the mining script be the same? What settings can I use to get my miner working?


texts: Routing for Lightning network: was Flare implemented?

texts:
There is a 2016 paper from Bitfury on a proposed routing algorithm for LN:

Flare: An Approach to Routing
in Lightning Network

What is the relation between it and was was actually implemented (the primary reference being the BOLT specs)?


texts: Problems in recovering from a seed of Multibit HD

texts:
I've installed and created a new wallet in Multibit HD on my PC, I used a seed of 24 words. As far as I understood, with this 24 words I can recover it on a mycelium android, and I should see and be able to spend the bitcoins from both devices.
The problem is that after fresh installing the mycelium on android I choose to recover from seed, enter the 24 words but I can't see my bitcoins. A new wallet with 0 bitcoins appears.
Is it normal? what i don't understand about HD wallets? I thought that both wallets shold be identical.


texts: Why is the Litecoin blockchain smaller than the Bitcoin one?

texts:
I do not understand why Litecoin's blockchain size is an order of magnitude smaller than Bitcoin's. Indeed according to this link the Bitcoin blockchain requires 196.52 GB and Litecoin's 16.55 GB.

In my expectation, the Litecoin blockchain should be bigger because the block size limit is the same, but the block interval is a quarter of the block interval of bitcoin.

Is this due to the smaller user base of Litecoin compared to Bitcoin?


texts: How do Bitconnect Creators Hide their Identity?

texts:
Does government really seize Bitconnect assets?

This asks if Governments really seize bitconnect assets.

There are a bunch of legal arguments.

However, with all legal arguments aside, is there anything governments can do to nail the creator of bitconnect ponzy?

It seems that no body knows who created bitconnect. They are invincible.

But how come?

Their website is accessible openly. How did they pay for their website that allows them to host anonymously? Do they pay with bitcoin too?

What did the silkroad do "wrong" that bitconnect did "right"


texts: Description of the OP IF is a bit vague on the wiki. Where does one get statements for the op for? Are they coming from the stack, or from somewhere else? Are there any available examples of how a script using that op code looks like?


texts:
createrawtransaction is a bitcoin-cli command that generates a raw transaction given one ore more transaction ids and a list of Outputs, which are the destination amounts that will receive the funds.

AFAIK, The raw transaction is only based on the blockchain, and does not require any private key or address; the signing process is done separately, using signrawtransaction.

If the createrawtransaction process requires no secret keys, is there a way to generate a raw transaction online, using a web service?


texts: Why is my client software not receiving bitcoins?

texts: I've just installed the official bitcoin client for the first time on my PC and have visited a website that gives free bitcoins. I've been waiting for more than an hour, but the amount given to me is still not showing in my bitcoin client. Have I missed anything in setting up and configuring the client software?


texts: How to limit the debug.log file while running bitcoind?

texts: The debug.log file is getting pretty big on bitcoind. How do you limit the size of the file? I'm on Ubuntu 12.


texts: How exactly does a block get constructed and verified?

texts:
From what I understand, a new block contains all the transactions within the last 10 minutes.  So when Alice sends Bob 10 BTC, how does this information get put onto the newest block?  I guess I am wondering who collects all the transactions and then constructs the new block?  Does the client facilitate this and how do we know it contains trustworthy data?

And when the block is discovered by a mining node, I understand that it tries to find a nonce which hashes to leading zeros as part of proof of work.  I read that miners help 'verify' transactions.  How does finding a nonce verify what is in the block?  Or does the verifying refer to other nodes checking that "block + nonce" hashes to correct number of leading zeros?


texts: How do I get bip32 public key and address from private key in python?

texts:
I have checked related questions and did not find answer. I also tried to use "secp256k1", "bip-0032", "seedrecover" and did not succeed.
When my input is a private key in the format "'xprv'..." I get problems related to decoding issues, or length of the key (like in the module 'ecdsa' I get 'ecdsa.keys.MalformedPointError: Invalid length of private key, received 77, expected 32') and so on.
I am asking for simple python-3 code snippet to get the public key and address or a simple mathematical explanation so I can code it myself.
I know that bip32 is related to deriving keys and addresses but I do not need the derived ones, but the ones which are corresponding to the given private key.
A code that work for other private keys and do not work here:
def get_public_from_private(private_key):

#   Checks if the input is in valid hexadecimal format, if it is not hexadecimal but it is base58,
#   it converts it to hexadecimal, otherwise it returns an error.

if not utilities.is_hexadecimal(private_key):
    if utilities.is_base58check(private_key):
        private_key = Bitcoin().__convert_private_wif_to_hex(private_key)
    else:
        raise Exception('From Bitcoin::__get_public_from_private::Exception caught: ' + "the key format is "
                                                                                "not hexadecimal")
#   From that point, key is valid hexadecimal private key.
private_key_bytes = codecs.decode(private_key, 'hex')
# Get ECDSA public key
key = ecdsa.SigningKey.from_string(private_key_bytes, curve=ecdsa.SECP256k1).verifying_key
key_bytes = key.to_string()
key_hex = codecs.encode(key_bytes, 'hex')
# Add bitcoin byte
bitcoin_byte = b'04'
public_key = bitcoin_byte + key_hex
return public_key.decode("utf-8")


texts: Proof of work: How are target, difficultly and number of leading zeros related to each other

texts:
I'm aware of this post, this and this one.

I'm a bit confused with the terms. I don't understand how a number of leading zeros, target and difficulty are related to each other. Also, I don't understand how the number of zero's are calculated for the next target.


texts: I was never asked to create a password for my Bitcoin Wallet

texts: Last week I downloaded a Bitcoin Wallet from bitcoin.com.  It is on my iPad.  I also put the same wallet on my iPhone.  As I was setting the wallet up, I recorded my 12-words, placed them in the proper order when asked, I wrote them down, then sent my wallet info to iCloud using the provided address and created a password for that.  It is a file in iCloud named "wallet.data"... but... is that the only password I need?  My iCloud password??  I don't recall being asked to create any other password than that.  Please help.  My Wallet now has 1000's in funds received but will I ever be able to spend it??  I'm a bit in a panic at the moment.  Please help.


texts: I cannot find where to get the host to complete a lightning channel. I have tried searching in the command prompt but cannot find host info anywhere.


texts: What does the listaddressgroupings rpc method do?

texts:
Can anyone please explain the listaddressgroupings rpc method? Its documentation isn't clear in Bitcoin Core

Lists groups of addresses which have had their common ownership
made public by common use as inputs or as the resulting change
in past transactions

Result:
[
  [
    [
      "bitcoinaddress",     (string) The bitcoin address
      amount,                 (numeric) The amount in btc
      "account"             (string, optional) The account
    ]
    ,...
  ]
  ,...
]

????


texts: How do I spend bitcoins from multiple wallets in a single transaction?

texts:
Using, e.g., the Bitcoin Core command line, how could I spend bitcoins from multiple wallets in a single transaction?

This comment says:

  instead of sending the transaction to the network, you send it to the next person who will add their inputs and outputs and sign them as well, and so on. The last person would then broadcast the transaction on the network.

I assume I use createrawtransaction and signrawtransaction somehow, but how exactly do I actually do this?

cf. Mastering Bitcoin (1st ed.), §"Using Bitcoin Core’s JSON-RPC API from the Command Line", §§"Creating, Signing, and Submitting Transactions Based on Unspent Outputs"


texts: How secure is using TOR in Lightning Network?

texts:
In following paper (Link to the paper) we read:

  "combining Tor and Bitcoin creates an attack vector for the
  deterministic and stealthy man-in-the-middle attacks. A low-resource
  attacker can gain full control of information flows between all users
  who chose to us Bitcoin over Tor. In particular the attacker can link
  together user’s transactions regardless of pseudonyms used, control
  which Bitcoin blocks and transactions are relayed to the user and can
  delay or discard user’s transactions and blocks."

On the other hand, in this answer(Link to the answer) we read:

  "in order to maximize your privacy you should run your lightning node
  on TOR even though the routing of payments is a source based
  Onionrouting similar to TOR."

According to the paper that is addressing an attack on the Bitcoin, How secure is using TOR in Lightning Network ?
Does use of TOR in LN increases privacy by hiding the IP address WITHOUT increasing the the proposed man-in-the-middle attack in the paper ?


texts: What is a block index in blockchain.info?

texts:
On blockchain's blockchain api documentation, located here

https://blockchain.info/api/blockchain_api

There is an api call that uses a parameter called block_index. What is this value, and how does it differ from block_height? From playing around with changing the block_index value in the following api call:

https://blockchain.info/block-index/$block_index?format=json

It seems like (imo quite arbitrarily, which adds to my confusion) that block_index 14849 corresponds to the genesis block. Finally, on the api page listed at the top the first example output they show gives a block whose index is 818044, yet when I enter the following api call into my browser's address bar:

https://blockchain.info/block-index/818044?format=json

I get "Block Not Found". Is this just a bug in blockchain.info that the example output they provide doesn't actually work, or am I using block_index incorrectly?


texts: Alternative Cloud Hashing sites to Cex.io

texts:
I am really impressed with Cex.io and their whole concept of trading Ghs for Bitcoin as well as cloud mining which I find to be novel and interesting.

Are there any other sites like that? I know there are a number of cloud hashing sites but what I am looking for is one similar to Cex where I can also do commodity trading.


texts: Testnet for bitcoin - are there multiple operating?

texts:
I have been tinkering around on testnet with three portals:

Biteasy
Block Explorer
blockr

I observed that when I posted testnet coins using tpfaucet to a wallet created using testnetwallet, the transaction showed up in blockr and blockexplorer but not in biteasy. When I sent testnet coins using the same testnetwallet to a paper wallet address, the txn and balance showed up correctly in blockexplorer but not in biteasy or blockr.

I am a bit confused about what is happening here - I thought these are all services to look up the same testnet and hence I should be able to confirm same blocks, txns, addresses one each of these. Is that not the case? Are there private testnets operating on these portals? I can't see any information saying so anywhere.

Another observation: Blockexplorer is showing the transaction as confirmed with 74 confirmations and balance showing up correctly as confirmed balance in recipient account. But testnetwallet (sender account) is showing the txn amount under "unconfirmed" balance while the txn itself is showing up in history. Confirmed balance is unchanged at the moment in sender wallet. Blockr is not showing the transaction or the amount under the recipient address.

Day 2: testnetwallet.com now shows correct confirmed balance as the sender wallet. I can see the transaction, block and both receiver and sender accounts correctly using blocktrail.com and blockexplorer.com. Blockr and Biteasy still don't show anything - even when I search by block number. Will keep digging.

Day 3: today blockr is also showing the txn, block number and correct balances in both sender and receiver accounts. Until today, blockr wasn't showing any of these. Perhaps blockr service was slow/down? not sure. Biteasy is still not showing anything. I checked blockcypher also today and it's showing everything as well. I am going to use blockcypher's API to post a txn and check all five services to see which one is giving me results and by when. Will edit back with results.


texts: Cannot access my bitcoins because my wallet is still synchronising. What can I do to spend them immediately?

texts:
I have purchased bitcoins and have downloaded Bitcoin-QT, but my wallet is taking forever to synchronize to the network.

I can't access my wallet because it is still in the sync process. I have the record of me paying for the Bitcoins, the confirmation email, etc., and the address it has been sent to. I desperately want to start spending them. What can I do to gain access immediately without waiting for the synchronization to run its course?


texts:
How are fees negotiated in multi-hop payments in Lightning?

Imagine a four-hop payment: Alice -- Bob -- Charlie -- Dave. Bob and Charlie advertise fees of 100 sat each, Alice thinks it's reasonable and starts routing the payment through this route. Does Bob know which part of the expected payment is intended to be a fee? What is Bob forwards the payment to Charlie taking 120, 150, or 200 sat instead of 100 -- what does Charlie do?

Is there anything that prevents intermediary nodes from lying about their fees?


texts: What is the difference between on-chain scaling and off-chain scaling?

texts:
What is on-chain scaling and off-chain scaling?
What is the core difference between on-chain scaling and off-chain scaling?


texts: How much transaction fees are taken by bitcore for API use?

texts:
If I am using the API of bitcore.io and create transactions, how much transaction fees are taken by Bitcore?

I couldn't find any description in their documentation.


texts: Sweep command does not show in the wallet properties tab

texts: I am using Armory 96.0.  The sweep command does not show in the wallet properties tab.  This is true for both my online WIndows 10 pro and offline windows 8.0


texts: How do I create release build of my new bitcoin wallet?

texts: I have created a new alt coin, and now I want to create a executable of my wallet in ubuntu. I don't know how to create a release build wallet with all its dependencies. How I can build my wallet application?


texts: How can I verify the PGP signature of https://liteaddress.org on Windows?

texts:
Suppose I want to download a copy of https://liteaddress.org in order to run it offline in a safe environment. Then how can I verify that the website hasn't been hacked? How can I verify that the downloaded copy is legitimate and not compromised?

The website explains this:

  If you are familiar with PGP you can download this all-in-one HTML page and check that you have an authentic version from the author of this site by matching the SHA256 hash of this HTML with the SHA256 hash available in the signed version history document linked on the footer of this site.

I have just started to read what PGP is because I don't know what PGP and SHA256 hash even are and how they work.

My knowledge of computers is very basic. I mean, I know how to use a computer, but PGP, SHA256, etc. are too technical for me.

Can someone explain to me step by step (assuming my knowledge regarding these topics is zero) how to verify the PGP signature of liteaddress.org?


texts: Connecting Genesis Mining to a bitcoin wallet

texts:
I am a noob to bitcoin and want to know a few things-:

I saw the Genesis Mining pricing here. Now my question is that if I use cloud mining can I transfer that amount to my Bitcoin wallet ? Like CoinBase or Bitcoin core ?

Can that be done in Genesis Mining ?


texts: How to backup seed in lightning and give your channel to watchtower

texts:
this is followup on question #85475:

I have learned in previous question that there is an automatic refund mechanism in case of force closure of a channel, except for some very rare circumstances. I would like to ask about two of those circumstances:
,

1-how to "back up your channel state" or how to back up your seed in lightning?
(is "channel state" here a synonym for "seed"?)

And why do people say the "seed" works differently in lightning compared to btc - differently how?
,

2-how can you "give your channel to a watchtower" ?  IN practical terms, if you use a current lightning wallet

thanks


texts: Mining generates block and the generation of block is rewarded with 25 bit-coins? So from where bit- coin is mined?

texts: I read that Mining of bit coins generate blocks and each block is rewarded with certain bit coins. So, from where bit coins are generated?


texts: Why was the Schnorr code removed from Bitcoin Core?

texts: I was looking for the Schnorr implementation in Bitcoin Core and was surprised to see that it was removed on Nov 2016 (commit e06e878fd7dcc99825025fa99aedb86bc7d5c29f). Why was the source code completely removed from Bitcoin Core? Was it moved to some other development repo?


texts: How to retrieve BCC mistakenly sent to BTC Electrum wallet?

texts: I sent my BCC from blockchain wallet to my BTC Electrum wallet and now I cannot trace them. Does not show in either of the wallets. How do i retrieve them?


texts: Passphrase requirement for old version of QT wallet

texts:
I have an old wallet.dat file which was encrypted in October 2012. I don't have the exact passphrase but I have a rough idea. I was wondering if anyone knows how to get the passphrase requirement for this specific version (it would help with my guessing). I looked through the source code for Bitcoin-Qt version 0.7.0 and 0.7.1 but all I was able to find was this

  ui->warningLabel->setText(tr("Enter the new passphrase to the
  wallet.Please use a passphrase of 10 or more random
  characters, or eight or more words."));

Which is line 33 of askpassphrasedialog.cpp file. I don't think this is a strict requirement for the passphrase although it helps. I would like to see the code which sets the passphrase requirement if possible. Any help would be greatly appreciated!

p.s. Does anyone know if it is possible to decrypt an old wallet without downloading the entire blockchain?


texts:
Whilst learning about bitcoin & lightning fees I have encountered the abbreviation sat/kw a few times, most recently here:

Why can’t lightning tx’s be signed with sighash single to allow for fee updates?

Is it a ratio of satoshis per kilowatt?


texts: How do I get the address that received a payment?

texts:
I am using BitcoinJ and wondering who user that I should credit, all users have their own receiving addresses. Please post an example also, if you have time. :)
Current code:

    wallet.addEventListener(new AbstractWalletEventListener(){
        @Override
        public void onCoinsReceived(Wallet wallet, Transaction tx, Coin prevBalance, Coin newBalance) {
            String txid = tx.getHashAsString();
            long received = newBalance.value-prevBalance.value;
            String address; // The receive address that the payment was sent to.
            int UserID = MySQL.getUserIDbyAddress(address);
            // Here will I credit the user.
        }
    });


texts:
say I have this private key: 5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf

Now let's say I take the 5 out then take any location of this string and flip it:
bpvD8s5ip4nEB3kEsreAnchuDf HpHagT65TZzG1PH3CSu63k8D

(I kept the space to make it easier to see. merged would look like this: bpvD8s5ip4nEB3kEsreAnchuDfHpHagT65TZzG1PH3CSu63k8D)

Now I send this to myself on an e-mail.

How easy would it be to reverse this string to the original privkey if you knew my recipe? (1. remove first char, 2. split key anywhere and flip)


texts: Volume in the Charts is different than what gets returned from the API's

texts:
when I pull volume data (BaseVolume?) from the Bittrex (for example) API every minute, draw a chart from that data and then compare that with the one minute timeframed volume chart (the study chart) on Bittrex it looks totally different.

I used BaseVolume, but i also tried to draw graphs with any other field that gets returned and I can't seem to replace these charts at all with any value. Does anyone have any idea?

Thanks


texts: Accountability with Bitcoin transactions

texts:
In one of the comments to this question Highly Irregular pointed out an interesting legal issue that might arise with Bitcoin. Mainly, if some organisations use Bitcoin (say, Wikileaks) and are deemed illegal by some authority (say, the government of USA), and subsequently sending money to them could be deemed illegal, how would issues with unintentional donations be handled?

Say, someone convinces a person to send "them" Bitcoins, instead of providing them with an address of the illegal organisation. The victim performs the donation, and their support of the organisation is later revealed.

How would such a case be handled in court at the current date? Do you know of any relevant laws in say, USA, that would apply to such a situation?


texts:
According to this page,

  The client will automatically read a file named "addr.txt" in the
  bitcoin data directory and will add any addresses it finds in there as
  node addresses.

However, I can't find any point in the source code where this file is actually read, and I don't know how to verify all the peers known by my node.

Is the "addr.txt" file actually read by bitcoind?
How can I check if the addresses are actually loaded?


texts: Is this how I should calculate a Double SHA256

texts:
So I have a function called sha256 which will take a string and return the SHA-256 hash.

var First = sha256('myfirstSHA');

And the output is the hex:

9b2b95b24dd9149480ebda21aafe3f1a3c0370798ceec3c4d09c6a16adfe01c8

All feels good here, but if I want a double SHA-256 how should I go abut calculating it? Can I just use the same function as above twice? like this...

var Second = sha256(sha256('myfirstSHA'));

What should the value of Second be?

I get the feeling I may need to get the value of the first hash and convert it to something before putting it back through the sha-256 function a second time??

So my question is, what should I convert it to, before feeding it back in again?

Any advice is most welcome!


texts: A friend of mine accidentally transferred USDT from Binance to GDAX ... and apparently it's stuck in the Omni layer which handles these types of transactions.  However GDAX is not looking for them and is not able to help retrieve or map the funds to one of it's currencies.  Anyone know of a service that can retrieve the funds from the Omni Layer blockchain?


texts: How to generate a valid bitcoin address for destroying bitcoins?

texts:
(Following up to this question.)

In order to put a bitcoin beyond use, the answer was to select a made up address. As this isn't a formal destruction of bitcoins, there's a risk that the private keys could be found to spend those "destroyed" bitcoins.

If someone suggests an address, people might suspect that this address was selected because that person painstakingly looked for an address that looked like a made up address.

How can an address for bitcoin destruction be selected that everyone can be reasonably sure no-one's going to know the private keys to spend the destroyed bitcoins?


texts: GetBlockChecked always returning genesis block?

texts:
currently I'm exploring Bitcoin source code and I tried to add custom function getblockvalue inside of blockchain.cpp.
Purpose of function is to return sum of all transaction outputs inside of a block based on given height as an argument.
static UniValue getblockvalue(const JSONRPCRequest& request)
{
    int blockHeight = request.params[0].get_int();
    if (blockHeight < 0 || blockHeight > ::ChainActive().Height())
    {
        throw JSONRPCError(RPC_INVALID_PARAMETER, "Block height out of range");
    }

    CBlockIndex* pBlockIndex = ::ChainActive()[blockHeight];
    if(pBlockIndex == nullptr)
    {
        throw JSONRPCError(RPC_INVALID_PARAMETER, "Block index is NULL");

    }
    const CBlock block = GetBlockChecked(pBlockIndex);
    UniValue resultObject(UniValue::VOBJ);
    double blockValue = 0;
    int numberOfTransactions = 0;

    for(const auto &transaction : block.vtx)
    {
        for (unsigned int i = 0; i < transaction->vout.size(); ++i)
        {
            blockValue+= transaction->vout[i].nValue;
        }
        ++numberOfTransactions;
    }

    resultObject.pushKV("blockHeight",          (int)blockHeight);
    resultObject.pushKV("numberOfTransactions", (int)numberOfTransactions);
    resultObject.pushKV("blockValue",           ValueFromAmount(blockValue));

    return resultObject;
}

I did all necessary changes: I added argument to vRPCConvertParams[] and extended CRPCCommand commands[].
So, I tried calling bitcoin-cli -testnet getblockvalue 25; result is:
{
"blockHeight" : 25,
"numberOfTransactions" : 1,
"blockValue" : 50.00000000
}

The result is the same for every given block height. It always gives me information about genesis block. Can you help me what did I do wrong here?


texts: Get Coinbase.com miner fee before sending to another address

texts:
I am using coinbase.com php library to send bitcoin to another address. But every-time i am sending bitcoin the fee is shown to me after sending the bitcoin. This is causing me some problem. Is there anyway to get the miner fee for a transaction before I send the amount. Thank you.

**I am using the official PHP library of coinbase.com


texts:
In various places, e.g. here and here, there are plots of the "difficulty" of bitcoin mining over time. What exactly is the interpretation of these numbers - in what units are they measured?

My first thought was that the "difficulty" is the number of bits that should be zero in SHA256(block+nonce). But, in this case the difficulty should have been a number between 0 and 255, and these sites show much higher numbers.

My second thought was that SHA256(block+nonce) should be at most 2^256-difficulty. But, in this case it should be an integer, while this link shows that the current difficulty level is not an integer.

So, what exactly the number called "difficulty" represent?


texts:
Tried decrypting a multibit key, but I always have unsuccessful attempt because we have a newer version of openssl today. Anyone tried successfully decrpyting a key.
Commands used:
openssl enc -d -p -md md5 -aes-256-cbc -pbkdf2 -iter 1000 -salt -in file.key -out out.key
Bad magic number is the error.
And also this:
openssl aes-256-cbc -md md5 -in file.key -out out.key
it says depreciated derivation key used, and it gives me a messed up output
Thanks


texts: Cannot connect to slushpool with bfgminer

texts:
I am a complete newbie and just want to see how mining works in principle. No profit required. I have created an account on slushpool and have username and password. Then I go to my Ubuntu machine (a desktop, with GPU, no ASICs or something) and ran
bfgminer -o stratum+tcp://stratum.slushpool.com:3333 -u myusername -p mypassword

It started to print in cycles
 [2020-11-13 10:17:47] Waiting for devices; press 'M+' to add, or 'Q' to quit
 [2020-11-13 10:17:47] Probing for an alive pool
 [2020-11-13 10:17:48] pool 0 JSON stratum auth failed: [
   -1,
   "Internal Server Error",
   null
]
 [2020-11-13 10:17:48] No servers were found that could be used to get work from.
 [2020-11-13 10:17:48] Please check the details from the list below of the servers you have input
 [2020-11-13 10:17:48] Most likely you have input the wrong URL, forgotten to add a port, or have not set up workers
 [2020-11-13 10:17:48] Pool: 0  URL: stratum+tcp://stratum.slushpool.com:3333  User: myusername Password: mypassword
 [2020-11-13 10:17:48] Press any key to exit, or BFGMiner will try again in 15s.
 [2020-11-13 10:18:04] No servers were found that could be used to get work from.
 [2020-11-13 10:18:04] Please check the details from the list below of the servers you have input
 [2020-11-13 10:18:04] Most likely you have input the wrong URL, forgotten to add a port, or have not set up workers
 [2020-11-13 10:18:04] Pool: 0  URL: stratum+tcp://stratum.slushpool.com:3333  User: myusername  Password: mypassword

Why? What is happening? What am I doing wrong?


texts: How many transactions can a bank/person make per block

texts:
I’m trying to determine if bitcoin is too expensive for a bank to use.

Assume that a bank would use bitcoin for something like confirming transactions between itself and another bank I’m asking how many transactions on a single block can a bank make?

I’d like to answer the question 1 Bitcoin Cost / Number of transactions = cost to bank / transaction

Any thoughtsb   Is this the correct way to think of the worth of bitcoin?


texts: Found my wallet on my external HDD but it has changed the adress and it was empty after synchronising. I can see in blockchain.info that its not empty

texts: Can anyone help me,i found my wallet from 2013 on my HDD. I noticed that it has changed its adress and there were no BTC on it after synchronising on my laptop. I can see in blockchain.info.com that its not empty.


texts:
i have a p2sh address that is created using an uncompressed public key (from my ledger nano) and a compressed public key (bitcoincore wallet). It requires both signatures to send the funds. When i use my nano ledger to sign i get output:

3045022100b0c80ad5f5db6b790b75156186322b1fd6f9d1da61ff04e47f5a64ca8cdfaf6f02207bce077a537e215d9dd5ccaae72e8af1c4750e67722910c2af1d1f3b6e9357f2

I am using the ledgerjs library to get this and using the signP2SHTransaction function. Normally i just input my private key into bitcoin core's signrawtransaction function but I am pretty sure this is the scriptSig. I just don't know of any libraries that allow me to use this to sign the rawtx. (I looked at python-bitcoinlib but i saw no way to input rawtx information into a readable format.)

Any suggestions on a tool i can use to take this to sign the raw tx hex to the send on the wire?


texts:
I used BitCoin for the 1st and final time so far about 2-3 years ago. I thought I had lost my wallet but I found an old backup of my hard drive and it contains a file "multibit.key". I installed a program called MultiBit HD but all the instructions for importing an old forgotten wallet are for the old version of MultiBit.

So in short: what now? I would like to open my "multibit.key" wallet, I think I remember the password but I have a hard time opening/importing it to MultiBit HD. If that is even the right program to use... :)


texts: Can the coinbase transaction be used to spend an UTXO?

texts: I know the coinbase transaction's input is usually just has a dummy scriptSig, but what if a miner used it to spend an UTXO? Would it be verified as an actual spend, or would the block be rejected?


texts:
So, Let's say I want to create a transaction by using bitcoinjs-lib.
As far as I can see, this library doesn't provide the help so that it can automatically figure out/grab unpent transactions for inputs and create a transaction magically.
My question is: Am I the one who has to know unspent transactions that I want to use for the inputs in advance ?
If the answer is no, then can you point me to the bitcoinjs-lib file that does this ?
If the answer is yes, how do I get unspent transactions ? By looking at my transaction list on blockchain and getting each one of them's txid and vouts seem not reasonable. Any idea ?


texts: Locating Server-Grade PSU-to-PCIe Power Cables for Bitmain Antminers?

texts:
Does anyone know where breaker boards and cables can be purchased online that provides four PCIe 6-pin connectors to power an Antminer C1 from a server-grade power supply unit (PSU)?

Background: I was watching a Spondoolie SP20 Jackson video that showed a server grade power supply and a breaker board that could feed four PCIe connectors. The video got me thinking... I have a couple of high quality 1100 Watt PFE1100-12-054RA 1U server-grade power supplies from canabalizing a dead 1.6 TH/s Cointerra box (was always very unreliable) that would be ashamed to waste.

One PSU's load should be ~94% efficient when powering an Antminer C1. The problem is the so called "breaker boards" in the dead Cointerra box have 4 AWG copper wires that are used to feed Cointerra mining boards. It would be a very messy hack (requires crimping and potentially a fire hazard) to fashion my own cables to connect the Cointerra "breaker board" to 4 PCIe connectors to power an Antminer C1.

FYSA - The C1 instructions showed a fat paperclip trick to have two ATX power supplies to fully power a C1 that provides the short answer How to power the Bitmain Antminer C1? Don't power your Antminer's using Coolmax products... Two Model:ZX-600 died within 30 days while using a C1's Antminer factory default settings. The C1 even burned up an old Butterfly LAbs (BFL) ATX PSU. This was the impetus for this question. From other Internet postings, it appears that server grade PSU should to be used for Bitmain Antminer products. Also if you ordered a C1 without a SysCooling Kit, use SysCooling Kit to purchase one after the fact.


texts:
I don't seem to be able to ask the right question in the title, the way I asked the question is not correct.
What I really want to know is this:

I can spend an unconfirmed output, then I can spend the output that spends that unconfirmed output, and I can spend that output, too, and so on...

My question is: how many times can I do it?

Edit: I just tried it in the testnet, I got this message: 64: too-long-mempool-chain. Is this 64 an universal number?
Edit 2: It turns out 64 is the error code. The actual number is 25.


texts: Byzantine fault-tolerant consensus - Why 33% threshold

texts:
Can somebody tell me why in dbft the threashold is 1/3 for malicious nodes? I mean that seems pretty abitrary. I have no problem if it is abitrary but is it?

Note: I'm not referring to Bitcoin. I chose this Forrm, because there is not game-theory or Antshares/Neo-forum.