Cory Fields
818c586f18
Advertise segwit support
...
Now that commitments can be handled.
8 years ago
Cory Fields
29403a2c1c
Add BIP145 segwit support
...
Transaction "hash" and "txid" now have specific meanings. "txid" represents the
hashed tx without witness data. This is used to form the in-header merkle root
as usual.
"hash" is the tx including witness data, if any. If there is no witness data,
hash == txid.
if the "segwit" rule is active, hashes are combined into a merkle tree, and the
root is inserted as part of the scriptPubKey in a coinbase txout.
See BIP141 for specifics.
8 years ago
Cory Fields
4fa3a3416e
Add basic versionbits (BIP9) gbt rules logic
...
A "rules" array is passed into the template request, indicating the understood
softfork deployments.
In the response, a "rules" array is also passed back, indicating the rules that
are active. If this rule begins with a "!", it means that blocks cannot be
successfully created without understanding the rule.
8 years ago
Con Kolivas
3a7ea5b504
Revert "Revert "Move merkle tree generation to the stratifier along with all transaction data to allow transaction data to be used directly in future code""
...
This reverts commit d0398fed4a
.
Reinstate for merge.
9 years ago
ckolivas
d0398fed4a
Revert "Move merkle tree generation to the stratifier along with all transaction data to allow transaction data to be used directly in future code"
...
This reverts commit 8702c02822
.
9 years ago
ckolivas
8702c02822
Move merkle tree generation to the stratifier along with all transaction data to allow transaction data to be used directly in future code
9 years ago
ckolivas
f2a0d3636f
Rename transactions to txns to not clash with the transactions value returned by getblocktemplate
9 years ago
James Hilliard
eb1cbe5925
Check that the result is null for accepted blocks instead of true. GBT returns {"result": null, "error": null, "id": null} if the block is accepted.
9 years ago
ckolivas
7b75f270bc
Consider duplicate response to submitblock as an accepted block
9 years ago
Con Kolivas
f6cf94f187
Copyright date updates
9 years ago
Con Kolivas
edd79bd8fa
Elaborate which bitcoind has failed responses
9 years ago
Con Kolivas
435dc5318a
Decrease verbosity of invalid char being passed to validate_address
10 years ago
ckolivas
f6df38d975
Retry submitting a block up to 5 times if we fail to get a proper response
10 years ago
li xin
5021a3d40f
bitcoin.c edited online with Bitbucket
10 years ago
Con Kolivas
22ef55be05
Update donation address and encode default 0.5% donation into coinbase
10 years ago
Con Kolivas
1007e20035
Create a json string based on parameters we'll be sending to the database on every work update to be submitted once it's hooked in
11 years ago
Con Kolivas
c4f0d57ae8
Fix various memory leaks
11 years ago
Con Kolivas
d4e6668865
Fix minor uninitialised ram and leak issues
11 years ago
Con Kolivas
e5953833a5
Don't show block hash in logs when accepted
11 years ago
Con Kolivas
6a753c149d
Clean up block solve notification and messages, sending a work restart immediately
11 years ago
Con Kolivas
0b08bbb43e
Add submission of blocksolves
11 years ago
Con Kolivas
86159a60ec
Generate coinbase templates, fixing missing fields from gbt parser
11 years ago
Con Kolivas
0d3d2434be
Use name for socket directory and add more config options
11 years ago
Con Kolivas
eb041c331f
Use a consistent method for sending/receiving messages across unix sockets
11 years ago
Con Kolivas
0da6336602
Fix gbt base generation, be more flexible with reading lines from socket, and add gbtbase clearing function
11 years ago
Con Kolivas
b2805d2c49
Trim out values from the gbtbase structure that can't be exported as text and store the values required as strings and create a json structure out of the entries for export
11 years ago
Con Kolivas
c98ed16e38
Move gbtbase_t to bitcoin header
11 years ago
Con Kolivas
c653c781a3
We should also store the merkle hashes in the gbtbase structure
11 years ago
Con Kolivas
b8f9c948e7
Shrink rpc req string size
11 years ago
Con Kolivas
cf04ec012a
Use a preallocated hash char for get blockhash to avoid alloc/free
11 years ago
Con Kolivas
f2dc9c796f
Add helper functions for getting best block heights/hashes
11 years ago
Con Kolivas
7d932a7661
Cosmetic changes
11 years ago
Con Kolivas
1335dade26
Use this opportunity to avoid signed warnings with chars by taking void for hex2bin
11 years ago
Con Kolivas
a34efdb221
Implement base gbt structure storing from bitcoind
11 years ago
Con Kolivas
781aa26f0b
Rename gbt files to bitcoin since they'll have multiple bitcoin functions not just gbt
11 years ago
Con Kolivas
de0a616250
Begin gbt parsing file with a validate address function
11 years ago