kay kurokawa
e120c1de69
best_claim_effective_amount_equals was not using getEffectiveAmountForClaim
2018-05-14 17:48:50 -04:00
kay kurokawa
6fc7e0860e
update version to 0.12.1.2
2018-04-25 15:38:46 -04:00
Victor Shyba
1d071a9998
fix bug in CClaimTrie::getEffectiveAmountForClaim
2018-04-23 13:35:44 -04:00
Victor Shyba
6b13bd1d45
Add tests for CClaimTrie::getEffectiveAmountForClaim
2018-04-23 13:35:44 -04:00
Kay Kurokawa
4ff143387e
integrate new CalcMinClaimTrieFee function into the memory pool check and wallet transaction creation.
...
increase DEFAULT_TRANSACTION_MAXFEE to accomodate the claim trie minimum fee that will exceed 0.1 credits.
2018-04-18 16:54:11 -04:00
Kay Kurokawa
8817a7df51
Add new function CalcMinClaimTrieFee to calulate the fee required for claimtrie transactions
2018-04-18 16:54:11 -04:00
Kay Kurokawa
6f0b24d62d
add comment about what recursivePruneName does
2018-04-18 16:24:32 -04:00
Kay Kurokawa
62f4bedb17
add unit test for recursivePruneName and merklehash computation test in claimtriecache_tests.cpp
2018-04-18 16:24:32 -04:00
Kay Kurokawa
2f7c03cbe8
added a sanity check for making sure updates extend the expiration in claimtriebranching_tests, fixed white space
2018-04-16 12:32:51 -04:00
Kay Kurokawa
172f6aca32
remove debugging variable bnOld in retarget algorithm, clean up white spaces
2018-04-02 16:26:04 -04:00
Kay Kurokawa
d26db867dd
removed whitespaces at end of line in file rpcwallet.cpp
2018-03-12 09:35:08 -04:00
Kay Kurokawa
39580f1740
RPC commands updateclaim and nameclaim now takes argument "value" as hexadecimal encoded string
2018-03-12 09:35:08 -04:00
Kay Kurokawa
a2fa2c0720
supportExpirationQueueCache was not cleared with the rest of the cache objects
...
Signed-off-by: Kay Kurokawa <kay@lbry.io>
2018-02-09 20:16:09 -05:00
Kay Kurokawa
b2ba3f5ea0
Fix memory leak where a new unaltered CClaimTrieNode would be created in addNodeToCache() for the convenient purpose of copying by value, but would never be freed
...
Signed-off-by: Kay Kurokawa <kay@lbry.io>
2018-02-09 20:15:33 -05:00
Kay Kurokawa
d29f110a11
fix bug where we did not check the root node in the cache when reordering the trie
2017-12-28 11:43:14 -05:00
Kay Kurokawa
40e034ef1b
add logging messages to debug the crashing support on abandon issue
2017-12-28 11:43:14 -05:00
Kay Kurokawa
865f746636
add unit test to see if having a support and an abandon in the same block when there are not other claim will crash lbryrcrd
2017-12-28 11:43:10 -05:00
Kay Kurokawa
b2216fd270
fix getblocktemplate command not returning the correct claimtrie hash
2017-09-13 12:08:39 -04:00
Alex Grintsvayg
5a1d288b17
bump build after merging PRs
2017-09-13 09:12:59 -04:00
mkg20001
30e941195a
Fix currency unit
2017-09-13 09:09:30 -04:00
mkg20001
d438e9f968
Change CURRENCY_UNIT and BitcoinUnits::name
...
This will show LBRY instead of BTC
2017-09-13 09:09:30 -04:00
Procrastinator
20ae466765
Replace Satoshi
subversion with LBRY
...
Distinguishes lbry nodes from bitcoin nodes
2017-09-13 09:08:39 -04:00
Jack Robison
84b093b981
bump version to 0.12.0.5
2017-08-14 10:51:55 -04:00
Jack Robison
7a0724098f
feedback from kay
2017-08-08 18:49:25 -04:00
Jack Robison
04d77ab376
add getclaimbyid
2017-08-08 10:18:34 -04:00
Jack Robison
3a7e7adfe3
bump version to 0.12.0.4
2017-04-13 18:43:48 -04:00
Jack Robison
dd8638dba8
include the claimid in the response for getclaimsintrie
2017-04-13 15:10:22 -04:00
Alex Grintsvayg
4ec3516045
bump version to 0.12.0.3
2017-04-03 17:27:03 -04:00
Jack Robison
e6629319a5
add claimId to return from getvalueforname
2017-03-22 15:06:20 -04:00
Kay Kurokawa
4a8e372720
bump version to 12.0.1.2
2017-02-01 11:16:28 -05:00
Umpei Kay Kurokawa
1b896ae75b
Merge pull request #56 from lbryio/change_block_decrements
...
Change max block decrement amount to 50
2017-01-13 10:35:23 -05:00
Kay Kurokawa
61664b027b
change max block decrement amount to 50
2017-01-04 17:52:07 -05:00
Kay Kurokawa
86592934cb
Adding effective amount function to CClaimTrie
2017-01-04 13:57:28 -05:00
Umpei Kay Kurokawa
6542b53b36
Merge pull request #53 from kaykurokawa/fix_removesupport_bug_2
...
Fix remove support bug
2016-11-10 20:18:10 -05:00
kkurokawa
51d6b690cb
fixing removesupport bug
2016-11-10 20:15:23 -05:00
kkurokawa
03b3828a65
adding test to check for spend of support where i in of txin[i] is not 0
2016-11-01 15:46:32 -04:00
kkurokawa
34f61bbbf0
adding new claimtrie branching tests
2016-10-28 14:28:11 -04:00
Umpei Kay Kurokawa
cddeccd2b9
Merge pull request #50 from kaykurokawa/add_claimscript_encode
...
Adding claimtrie script generation functions
2016-10-28 12:26:43 -04:00
kkurokawa
65505b3d55
Adding claimtrie script generation functions
2016-10-27 11:02:21 -04:00
kkurokawa
b6d9e4e591
setting client version as release
2016-10-26 11:32:02 -04:00
Job Evers‐Meltzer
b89ff5f456
Merge pull request #34 from kaykurokawa/check_dust
...
Re-enable dust threshold checks
2016-10-18 11:27:20 -05:00
Alex Grintsvayg
df5f764d52
add testnet dns seeds
2016-10-13 15:46:14 -04:00
Alex Grintsvayg
c8199b158d
update fixed seed nodes
2016-10-12 20:25:21 -04:00
James Kiselak
0d0d7c5320
Merge pull request #37 from kaykurokawa/bump_version
...
update version
2016-08-26 18:38:25 -04:00
kkurokawa
1b80858a44
adding test to check the POW algorithm
2016-08-10 21:04:04 -04:00
kkurokawa
e0089d19f2
adding test for block with bogus claim trie hash
2016-08-10 16:45:36 -04:00
kkurokawa
50c2ed0fee
lowering dust threshold to 1 , in order to not break lbrynet
2016-08-08 20:49:40 -04:00
kkurokawa
e4481fc213
update version
2016-08-08 19:12:30 -04:00
kkurokawa
b51444fd5c
Re-enable dust threshold checks
2016-08-07 18:58:14 -04:00
Jack Robison
774246d16f
Merge pull request #15 from jimmykiselak/claimid_rpc_updates
...
Claimid rpc updates
2016-08-06 21:25:33 -04:00
kkurokawa
ec3801f07a
fixing listclaimnames not showing supports, updating help messages for rpc commands
2016-08-01 21:31:20 -04:00
Job Evers
2df151e325
add windows build to travis
...
Compiles lbrycrdd using mingw to produce a windows executable
2016-07-29 15:12:46 -05:00
Jeremy Kauffman
c3e9266494
Merge pull request #30 from kaykurokawa/update_rpc_getvalueforname
...
adding effective amount to rpc command getvalueforname
2016-07-29 09:31:24 -04:00
kkurokawa
526b1866ee
adding effective amount to rpc command getvalueforname
2016-07-28 18:14:14 -04:00
Jeremy Kauffman
d0214d14c5
Merge pull request #14 from jimmykiselak/bogus_claimid_tests
...
Bogus claimid tests
2016-07-27 18:35:31 -04:00
Tanguy Pruvot
ce7f414962
rpc: add claimtrie field in getblocktemplate
...
getblocktemplate is supposed to output all required mining infos
2016-07-21 22:01:47 +02:00
kkurokawa
ad7304e321
Limits name length of claimtrie transactions to 255 bytes
2016-07-21 14:58:49 -04:00
Jimmy Kiselak
a186aaa073
put useful documentation, also report the last takeover height
2016-07-18 23:29:41 -04:00
Jimmy Kiselak
80bb42c912
make getclaimsforname show useful info and group together supports
2016-07-18 22:37:30 -04:00
Jimmy Kiselak
e713501a5d
start making getclaimsforname rpc command
2016-07-14 23:11:31 -04:00
Jimmy Kiselak
0551e881f5
fix supports and fix printing of claimid and value for updates
2016-07-11 23:37:17 -04:00
Jimmy Kiselak
31008a84b2
begin updating wallet rpc to use claimids
2016-07-11 00:08:01 -04:00
Jimmy Kiselak
b6e686538f
add tests that verify updates with bogus claimids never make it into the trie
2016-07-11 00:07:04 -04:00
Jimmy Kiselak
40735d9e8f
make regtest generate blocks faster so that tests run in a reasonable amount of time
2016-07-10 22:25:24 -04:00
jonaswhidden
bea0d27432
Resurrect gethashespersec
2016-07-08 02:57:29 -05:00
kkurokawa
88c28a7fd6
Updating chainparams, adding checkpoint at block 4000 to mainnet, fixing broken tests
2016-07-01 15:06:28 -04:00
Jack
4d4e693788
merge realnewpow2
2016-06-22 10:04:22 -04:00
kkurokawa
131006b10d
Switching to digishield difficulty retargeting algorithm
...
merge from kaykurokawa/lbrycrd
2016-06-20 17:34:02 -04:00
Jimmy Kiselak
e0a08c220d
Merge branch 'withjackscommits' into real2
2016-06-18 15:28:27 -04:00
Jimmy Kiselak
7e3d0d9f8f
Merge branch 'withjackscommits' into realnewpow2
2016-06-18 09:21:29 -04:00
Jack
ed381288f1
register mining commands
2016-06-18 09:20:26 -04:00
Jack
e8212f3eb7
add more dns seeds
2016-06-18 09:20:26 -04:00
Jack
ae72d636db
merge claimtrie-commands
2016-06-18 09:20:26 -04:00
Jack Robison
6fc0a906d3
update seeds
2016-06-18 09:20:26 -04:00
Jimmy Kiselak
c09b81d37e
new PoW hash function
2016-06-17 22:44:51 -04:00
Jimmy Kiselak
864533c699
use PoW hash in test_bitcoin, use pound defs for generating genesis block
2016-06-17 22:34:48 -04:00
Jimmy Kiselak
e190551cb2
put chain params in pound defs
2016-06-06 22:16:04 -04:00
Jimmy Kiselak
e08d765f11
Merge branch 'master' of https://github.com/bitcoin/bitcoin into realusmerge
...
Conflicts:
Makefile.am
README.md
configure.ac
contrib/seeds/nodes_main.txt
qa/rpc-tests/decodescript.py
qa/rpc-tests/test_framework/util.py
src/Makefile.am
src/Makefile.qt.include
src/Makefile.qttest.include
src/Makefile.test.include
src/bitcoin-cli-res.rc
src/bitcoin-cli.cpp
src/bitcoin-tx.cpp
src/bitcoind.cpp
src/chainparams.cpp
src/chainparamsseeds.h
src/init.cpp
src/main.cpp
src/main.h
src/miner.cpp
src/net.cpp
src/primitives/block.cpp
src/rpc/mining.cpp
src/rpc/rawtransaction.cpp
src/rpc/server.cpp
src/rpcserver.h
src/script/interpreter.cpp
src/script/script.cpp
src/script/script.h
src/test/alert_tests.cpp
src/test/data/alertTests.raw
src/test/data/script_invalid.json
src/test/data/script_valid.json
src/test/data/tx_invalid.json
src/test/data/tx_valid.json
src/test/miner_tests.cpp
src/test/script_tests.cpp
src/test/test_bitcoin.cpp
src/test/test_bitcoin.h
src/test/transaction_tests.cpp
src/timedata.cpp
src/util.cpp
src/wallet/rpcwallet.cpp
src/wallet/wallet.cpp
src/wallet/wallet.h
2016-05-15 22:16:56 -04:00
Wladimir J. van der Laan
d289950180
Merge #7900 : fix spelling mistake
...
3107c47
fix spelling mistake (Chris Moore)
2016-04-18 14:15:12 +02:00
Wladimir J. van der Laan
9eb7565cdd
Merge #7897 : add missing newline
...
dc0693f
add missing newline (Chris Moore)
2016-04-18 14:14:30 +02:00
Wladimir J. van der Laan
88616d2008
Merge #7848 : Divergence between 32- and 64-bit when hashing >4GB affects gettxoutsetinfo
...
28b400f
doc: update release-notes for `gettxoutsetinfo` change (Wladimir J. van der Laan)
76212bb
rpc: make sure `gettxoutsetinfo` hash has txids (Wladimir J. van der Laan)
9ad1a51
crypto: bytes counts are 64 bit (Wladimir J. van der Laan)
2016-04-18 12:48:09 +02:00
Chris Moore
3107c475a7
fix spelling mistake
2016-04-17 00:01:49 -07:00
Jimmy Kiselak
a78dfae04f
get tests passing for new block rewards, change initial reward to 400M
2016-04-16 18:42:11 -04:00
Chris Moore
dc0693f637
add missing newline
...
Without the newline I see "bein" where the two lines are concatenated:
Note that all inputs selected must be of standard form and P2SH scripts must *bein* the wallet using importaddress or addmultisigaddress (to calculate fees).
2016-04-16 13:42:28 -07:00
Jeremy Kauffman
76b40a0ab4
ramp up block rewards during test window
2016-04-16 14:59:29 -04:00
Jimmy Kiselak
3b5a316c64
include claimtriehash in rpc call for block header
2016-04-16 14:50:22 -04:00
Kaz Wesley
a7af72a697
prevector::swap: fix (unreached) data corruption
...
swap was using an incorrect condition to determine when to apply an optimization
(not swapping the full direct[] when swapping two indirect prevectors).
Rather than correct the optimization I'm removing it for simplicity. Removing
this optimization minutely improves performance in the typical (currently only)
usage of member swap(), which is swapping with a freshly value-initialized
object.
2016-04-16 08:05:11 -07:00
Kaz Wesley
4ed41a2b61
test prevector::swap
...
- add a swap operation to prevector tests (fails due to broken prevector::swap)
- fix 2 prevector test operation conditions that were impossible
2016-04-16 08:05:11 -07:00
Kaz Wesley
1e2c29f263
prevector: destroy elements only via erase()
...
Fixes a bug in which pop_back did not call the deleted item's destructor.
Using the most general erase() implementation to implement all the others
prevents similar bugs because the coupling between deallocation and destructor
invocation only needs to be maintained in one place.
Also reduces duplication of complex memmove logic.
2016-04-16 08:05:11 -07:00
Jimmy Kiselak
f2ebd4bcd4
fix address prefix tests and change difficulty readjustment interval
2016-04-16 02:16:32 -04:00
Wladimir J. van der Laan
76212bbc6a
rpc: make sure gettxoutsetinfo
hash has txids
...
The key (transaction id for the following outputs) should be serialized
to the HashWriter.
This is a problem as it means different transactions in the same
position with the same outputs will potentially result in the same hash.
Fixes primary concern of #7758 .
2016-04-15 18:03:05 +02:00
Wladimir J. van der Laan
9ad1a51857
crypto: bytes counts are 64 bit
...
Byte counts for SHA256, SHA512, SHA1 and RIPEMD160 must be 64 bits.
`size_t` has a different size per platform, causing divergent results
when hashing more than 4GB of data.
2016-04-15 16:44:23 +02:00
Wladimir J. van der Laan
9e47fcec17
Merge #7756 : Add cursor to iterate over utxo set, use this in gettxoutsetinfo
...
509cb00
txdb: Add Cursor() method to CCoinsView to iterate over UTXO set (Wladimir J. van der Laan)
2016-04-15 16:43:21 +02:00
Wladimir J. van der Laan
509cb006d5
txdb: Add Cursor() method to CCoinsView to iterate over UTXO set
...
Add a method Cursor() to CCoinsView that returns a cursor which can be
used to iterate over the whole UTXO set.
- rpc: Change gettxoutsetinfo to use new Cursor method
- txdb: Remove GetStats method - Now that GetStats is implemented in
terms of Cursor, remove it.
2016-04-15 16:33:05 +02:00
João Barbosa
f2d0944eb3
Add lockUnspents option to fundrawtransaction
2016-04-15 15:36:05 +02:00
João Barbosa
af4fe7fd12
Add change options to fundrawtransaction
2016-04-15 15:36:05 +02:00
João Barbosa
41e835dd50
Add strict flag to RPCTypeCheckObj
...
Strict flag forces type check on all object keys.
2016-04-15 14:55:52 +02:00
Wladimir J. van der Laan
64e71b3721
Merge #7856 : Only send one GetAddr response per connection.
...
66b0724
Only send one GetAddr response per connection. (Gregory Maxwell)
2016-04-15 09:03:17 +02:00
Wladimir J. van der Laan
efc059322c
Merge #7877 : Change mapRelay to store CTransactions
...
38c3102
Change mapRelay to store CTransactions (Pieter Wuille)
2016-04-15 08:59:40 +02:00
Wladimir J. van der Laan
48c5adfbce
Merge #6215 : add bip32 pub key serialization
...
90604f1
add bip32 pubkey serialization (Jonas Schnelli)
2016-04-15 07:59:38 +02:00