Questions tagged [validation]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
2answers
250 views

What forces transactions to be visible to all miners?

How are transactions provided to the miners? And what keeps the following scenario from occurring? A valid transaction is initially reported to a "rogue" node, A, in the network. If that node is a ...
2
votes
2answers
349 views

What is the duration of a ban?

I read somewhere that a node is banned for 24 hours. However I found the Misbehaving() function which makes state->fShouldBan = true;. But I could not find any other function that makes state->...
1
vote
1answer
39 views

Which sender is banned in case of nvalid transactions or blocks?

When a node receives an invalid transaction or block, as far as I know, it bans the sender for 24 hours. However, I didn't exactly get which sender is banned. Is it the neighbor node that provides the ...
3
votes
1answer
2k views

How do you validate a bitcoin address using bitcoinjs library in javascript?

How would one validate a bitcoin address using the bitcoinjs library? Or is there another way to do this via javascript?
8
votes
2answers
2k views

How to prevent a miner from stealing another miner's block?

Many articles only contain a phrasing like A miner A solves the hash problem and gives the result to the network to check. Once a majority of the network confirms, A gets the reward. But how does ...
8
votes
3answers
8k views

How long does block validation take?

Assume a miner receives a new block from a connected peer. Please correct me if I'm wrong: The miner validates the newly received block before using it themself and sending it to their other connected ...
1
vote
2answers
352 views

Easy way to accept bitcoin payments without external service

Is there a way to accept Bitcoin payments without running a full node or rely on an external service? I'm thinking in some way to validate the transaction and then broadcast it to the network.
0
votes
1answer
72 views

separating proof of work from mining possible?

I (think to) understand that proof-of-work is the process through which transactions are verified and the health of the network is being ensured. I also (think to) understand miners get bitcoins for ...
5
votes
2answers
226 views

Would moving a transaction from an old block to a new one allow more pruning?

At Pruning the branches in Merkle Tree Nick ODell writes "A leaf (transaction) can be pruned when all of its outputs have been spent." So I was thinking that if a transaction is one of the last few in ...
3
votes
1answer
284 views

Validate a payment using bitcoind and json rpc

I need to implement a BTC payment system on my web-store. But I'm still not sure about the mechanisms I'm supposed to use for payment confirmation. For example, a user registered on my store and I ...
3
votes
1answer
169 views

Can transaction validation really be free?

If you don't validate a transaction, then you are at risk for relying on it, propagating it, or including it in a block you're mining. For this reason, the default behavior is to validate every ...
1
vote
0answers
127 views

Validate chain from `valid-headers` to `valid-fork`

The getchaintips JSON-RPC returns multiple branches of the blockchain. Chain tips can be in various statuses. The active and valid-fork are already validated chains. There is a valid-header valid-...
0
votes
1answer
63 views

Must block contents be stored with the proof that they haven't been changed?

The replication of the block contents across all full nodes has been bothering me for some time. Isn't the header of a block enough for me to validate the block contents if and when I get them (which ...
2
votes
1answer
62 views

Would a normalized, hashed, protected chainstate reduce miner storage costs?

Spending freshly generated coins is prohibited by the protocol until there are at least 100 blocks on top of the block from which they came. This is because the chances of a 100-block reorg is ...
0
votes
0answers
91 views

How to send an invalid transaction for testing purposes?

How could I send an invalid transaction—for testing purposes, such as with testnet or regtest? For example, I would like to to try to double-spend, spend non existent coins, etc.
1
vote
1answer
553 views

Selfish Mining: stale or orphan?

In terms of a selfish attack many sources speak of orphaned blocks, i.e. blocks that are not on the main chain and thus not paying any coinbase transaction to its miner. Still I'm not sure and ...
13
votes
1answer
7k views

What is SPV mining, and how did it (inadvertently) cause the fork after BIP66 was activated?

I'm curious to hear an in-depth explanation of the hard fork and how it was caused; I've heard/read a great deal but I'm lacking a cohesive explanation.
4
votes
1answer
342 views

which transactions does bitcoind validate?

which types of transactions does bitcoind v0.10 perform checksig validation on? blockchain transactions belonging to a wallet with known private key blockchain transactions belonging to watch-only-...
2
votes
1answer
778 views

Can a transaction be in two blocks?

What happens with a valid block which contains a transaction which was already included in previous blocks? Is such a block accepted by other nodes in the network or discarded?
2
votes
1answer
2k views

How to validate bitcoin address

How I can validate a standard bitcoin address?

1 2
3