Commit Graph
486 Commits
Author SHA1 Message Date
wowario e4ddf841ee add lwma-1 2019-02-08 16:11:36 +03:00
jwandGitHub 541c3b069a Merge pull request #172 from wowario/checkpoints
update checkpoints.dat
2019-02-07 04:28:09 -08:00
jwandGitHub 1ee249435e Merge pull request #171 from wowario/forkv11
update v11 fork height
2019-02-07 04:27:58 -08:00
wowario 6717051efd update checkpoints 2019-02-07 00:52:22 +03:00
wowario 1d39aba9b8 update v11 fork height 2019-02-06 19:22:28 +03:00
wowario 8d5032a39f update genesis block timestamp date 2019-02-06 16:35:53 +03:00
moneromooo-moneroandwowario 90e116ea3d blockchain: fix default genesis block timestamp 2019-02-06 16:32:42 +03:00
wowario 683cde52f7 add v11/v12 fork height 2019-02-05 18:51:27 +03:00
moneromooo-moneroandwowario 7bce433b89 blockchain: don't propagate exception past dtor
Coverity 190660
2019-01-19 00:01:53 +03:00
jwandGitHub 65940b75f7 Merge pull request #155 from wowario/upstream
Upstream
2019-01-17 21:41:39 -08:00
moneromooo-moneroandwowario 0138a9a2b9 blockchain: fix wrong hf version when popping multiple blocks
Since we keep track of the hf version in the db, we pick it up
from there instead of doing the full reorg call, which is quite
expensive
2019-01-17 00:22:33 +03:00
moneromooo-moneroandwowario b0fda7c551 blockchain: use the version passed as parameter, not a new one 2019-01-17 00:21:54 +03:00
binaryFateandwowario 64c7ced3ed Update 2019 copyright 2019-01-16 00:31:13 +03:00
moneromooo-moneroandwowario 314e24d0ff blockchain_db: speedup tx output gathering
We know all the data we'll want for getblocks.bin is contiguous
2019-01-15 23:44:32 +03:00
moneromooo-moneroandwowario ccaffcfbb5 blockchain: fix block rate check for empty blockchains 2019-01-15 23:43:06 +03:00
moneromooo-moneroandwowario 3f4fc508ff cryptonote_core: revert extra_tx_map
While the lookups are faster, the zeroCommit calls have to be
done again when storing the new outputs in the db, which ends
up making the whole thing slower after all, and the ways this
can be cached aren't very nice code wise, so let's forget it
since the gains aren't very large anyway.
2019-01-15 23:40:06 +03:00
moneromooo-moneroandwowario bfd24d58c6 notify: handle arbitrary tags 2019-01-15 23:33:28 +03:00
moneromooo-moneroandwowario 267e656d8b blockchain: add --reorg-notify
This will trigger if a reorg is seen. This may be used to do things
like stop automated withdrawals on large reorgs.

%s is replaced by the height at the split point
%h is replaced by the height of the new chain
%n is replaced by the number of new blocks after the reorg
2019-01-15 23:33:19 +03:00
wowario 2439d2a39d update checkpoints 2019-01-13 12:37:24 +03:00
moneromooo-moneroandwowario 4bd63dab9d blockchain: call deinit in dtor
This ensures the io service that runs in another thread cannot
access data after it's deleted
2019-01-08 21:36:11 +03:00
moneromooo-moneroandwowario 636ffdc7a1 blockchain: fix race between two external mining threads 2019-01-08 21:36:10 +03:00
wowario 28100fbd68 update checkpoints 2018-12-18 01:16:00 +03:00
jwandGitHub 389d2bc53e Merge pull request #134 from wowario/old_bp
Support old bulletproof
2018-12-16 21:33:53 -08:00
fuwaandwowario 65d056aeae use the predefined diff variable for next-diff 2018-12-15 00:02:07 +03:00
fuwaandwowario fbc506b1f5 fix logic for choosing timestamp-check-window-version 2018-12-15 00:01:51 +03:00
fuwaandwowario 10b7f2b45f forbit old bulletproof after new bulletproof HF 2018-12-14 23:00:23 +03:00
wowario 5bf7ce14c5 support old BP 2018-12-14 22:58:59 +03:00
jwandGitHub 7e93cdba07 Merge pull request #131 from wowario/misc
remove monero stuff
2018-12-14 11:33:06 -08:00
wowario 57e8fce462 remove monero stuff 2018-12-14 19:31:44 +03:00
wowario d9649d98cd Merge remote-tracking branch 'upstream/master' into upstream 2018-12-12 14:58:54 +03:00
Riccardo Spagni 83684ea515 Merge pull request #4909
756684bb blockchain: avoid unnecessary DB lookups when syncing (moneromooo-monero)
2018-12-12 11:59:25 +02:00
Riccardo Spagni 0fccc78e39 Merge pull request #4903
dc1c1252 add command pop_blocks (Jason Wong)
2018-12-12 11:58:37 +02:00
jwandGitHub 61f3a191df Merge pull request #127 from wowario/dev-v0.5
Rebase: Initial commit
2018-12-05 16:55:31 -08:00
Riccardo Spagni 81418cb281 Merge pull request #4894
aee7a4e3 wallet_rpc_server: do not use RPC data if the call failed (moneromooo-monero)
1a0733e5 windows_service: fix memory leak (moneromooo-monero)
0dac3c64 unit_tests: do not rethrow a copy of an exception (moneromooo-monero)
5d9915ab cryptonote: fix get_unit for non default settings (moneromooo-monero)
d4f50cb1 remove some unused code (moneromooo-monero)
61163971 a few minor (but easy) performance tweaks (moneromooo-monero)
30023074 tests: slow_memmem now returns size_t (moneromooo-monero)
2018-12-04 17:33:19 +02:00
wowario 675b879844 initial commit 2018-12-04 18:29:23 +03:00
moneromooo-monero ec1a62b50d move int-util.h to epee 2018-12-04 15:14:29 +00:00
Riccardo Spagni e7d30780de Merge pull request #4869
60f36386 Avoid unnecessary temp block and copy ctor (moneromooo-monero)
2018-12-04 17:12:47 +02:00
Jason Wong dc1c12528d add command pop_blocks
add new public method to Blockchain and update according to code review

update after review: better lock/unlock, try catch and coding style
2018-11-28 12:20:28 +01:00
moneromooo-monero 756684bb28 blockchain: avoid unnecessary DB lookups when syncing
Some of the inputs for block in a span will be from other earlier
blocks in that span. Keep track of those outputs so we don't have
to look them up again after those early blocks are added to the
blockchain.
2018-11-27 14:03:06 +00:00
moneromooo-monero fc98f7a0a1 rpc: speedup get_outs.bin 2018-11-26 18:56:23 +00:00
moneromooo-monero 611639710d a few minor (but easy) performance tweaks
Found by codacy.com
2018-11-23 15:36:48 +00:00
moneromooo-monero 60f36386e4 Avoid unnecessary temp block and copy ctor
block already has a default ctor, and the extra object
churn due to its innards (vectors, etc) is pointless.
2018-11-19 17:57:17 +00:00
moneromooo-monero 31d80027b5 tests: add unit tests for get_output_distribution 2018-11-16 19:21:45 +00:00
moneromooo-monero 0936dae8a4 blockchain: remove "0 is height" shortcut from get_output_distribution
This prevents asking for just 0, and the RPC layer already does this
2018-11-16 10:03:02 +00:00
moneromooo-monero 872c7eb26a Revert "blockchain: simplify output distribution code"
This reverts commit b2bb9312a7.
2018-11-16 10:02:59 +00:00
Riccardo Spagni c37c70f459 Merge pull request #4806
ac23b10f blockchain: fix innocuous difficulty cache inconsistency (moneromooo-monero)
3b14d972 blockchain: use uint64_t for block height, not size_t (moneromooo-monero)
2018-11-16 11:16:49 +02:00
Riccardo Spagni 0cc3fc3756 Merge pull request #4769
5808530f blockchain: remove unused output_scan_worker parameter (moneromooo-monero)
1426209a blockchain: don't run threads if we have just one function to run (moneromooo-monero)
6f7a5fd4 db_lmdb: slight speedup getting array data from the blockchain (moneromooo-monero)
99fbe100 db_lmdb: save some string copies for readonly db keys/values (moneromooo-monero)
bf31447e tx_pool: speed up take_tx for transactions from blocks (moneromooo-monero)
4f005a77 tx_pool: remove unnecessary get_transaction_hash (moneromooo-monero)
593ef598 perf_timer: call reserve on new timer array (moneromooo-monero)
6ecc99ad core: avoid unnecessary tx/blob conversions (moneromooo-monero)
00cc1a16 unit_tests: notify test special case for the usual weirdo (moneromooo-monero)
2018-11-14 21:35:03 +02:00
moneromooo-monero ac23b10f15 blockchain: fix innocuous difficulty cache inconsistency
This inconsistent state would not actually be used in practice
2018-11-05 14:47:52 +00:00
moneromooo-monero 3b14d9727b blockchain: use uint64_t for block height, not size_t
for consistency
2018-11-05 14:47:48 +00:00
moneromooo-monero 5808530f54 blockchain: remove unused output_scan_worker parameter 2018-11-04 13:23:05 +00:00