moneromooo-monero
1387549e90
serialization: check stream good flag at the end
...
just in case
2019-06-14 08:47:23 +00:00
moneromooo-monero
f215219252
cryptonote: throw on tx hash calculation error
2019-06-14 08:47:17 +00:00
ston1th
f2f207d635
miner: fix double free of thread attributes
...
issue: #5568
2019-06-09 10:51:18 +02:00
moneromooo-monero
e980938210
fix wide difficulty conversion with some versions of boost
2019-05-01 19:58:09 +00:00
moneromooo-monero
375fde9454
hardfork: fix off by one updating fork index after popping
2019-04-20 00:05:35 +00:00
Riccardo Spagni
e98cbfbdfe
Merge pull request #5444
...
6643b047
Increment m_threads_active when mining thread starts (Doyle)
2019-04-16 22:45:42 +02:00
Riccardo Spagni
c5f64bf170
Merge pull request #5443
...
07dd5536
hardfork: remove "no hf version db" recreation check (moneromooo-monero)
2019-04-16 22:45:23 +02:00
Riccardo Spagni
46c477ab30
Merge pull request #5400
...
5e673c03
blockchain_db: fix db txn ending too early (moneromooo-monero)
2019-04-16 22:30:40 +02:00
Riccardo Spagni
9bd0983d5e
Merge pull request #5402
...
cbf32241
rpc: make wide_difficulty hexadecimal (moneromooo-monero)
2019-04-15 09:18:10 +02:00
Doyle
6643b04737
Increment m_threads_active when mining thread starts
2019-04-15 13:08:33 +10:00
moneromooo-monero
07dd55363c
hardfork: remove "no hf version db" recreation check
...
This is now obsolete, and this removes the warning on startup
on a new db that confuses some people
2019-04-14 10:34:29 +00:00
moneromooo-monero
5e673c03fe
blockchain_db: fix db txn ending too early
...
The db txn in add_block ending caused the entire overarching
batch txn to stop.
Also add a new guard class so a db txn can be stopped in the
face of exceptions.
Also use a read only db txn in init when the db itself is
read only, and do not save the max tx size in that case.
2019-04-14 08:35:38 +00:00
moneromooo-monero
064ab12340
functional_tests: add more blockchain related tests
...
Related to emission, reorgs, getting tx data back, output
distribution and histogram
2019-04-11 11:07:58 +00:00
Riccardo Spagni
38717dafc0
Merge pull request #5381
...
def40161
miner: fix race when stopping mining with start mining enabled (moneromooo-monero)
2019-04-11 13:03:32 +02:00
Riccardo Spagni
915d9e5a1f
Merge pull request #5380
...
113e4877
blockchain_stats: fix sign in formatting function (moneromooo-monero)
adaea3ea
various: remove unused variables (moneromooo-monero)
631ef00e
blockchain: some debug info when adding txes-from-block fails (moneromooo-monero)
2019-04-11 13:02:59 +02:00
Riccardo Spagni
3a4008f0fc
Merge pull request #5374
...
a2561653
wallet: new option to start background mining (moneromooo-monero)
2019-04-11 13:01:30 +02:00
Riccardo Spagni
76fbcfe2dd
Merge pull request #5123
...
089c7637
cryptonote: rework block blob size sanity check (moneromooo-monero)
2019-04-11 12:41:07 +02:00
Riccardo Spagni
4ac78e1612
Merge pull request #5346
...
c84ea299
cryptonote_basic: some more minor speedups (moneromooo-monero)
e40eb2ad
cryptonote_basic: speedup calculate_block_hash (moneromooo-monero)
547a9708
cryptonote: block parsing + hash calculation speedup (moneromooo-monero)
11604b6d
blockchain: avoid unneeded block copy (moneromooo-monero)
8461df04
save some database calls when getting top block hash and height (moneromooo-monero)
3bbc3661
Avoid repeated (de)serialization when syncing (moneromooo-monero)
2019-04-06 15:59:43 +02:00
moneromooo-monero
cbf3224180
rpc: make wide_difficulty hexadecimal
...
This should be friendlier for clients which don't have bignum support
2019-04-05 16:30:16 +00:00
moneromooo-monero
089c7637a6
cryptonote: rework block blob size sanity check
...
Use the actual block weight limit, assuming that weight is always
greater or equal to size
2019-04-05 09:35:19 +00:00
moneromooo-monero
a2561653cb
wallet: new option to start background mining
...
The setup-background-mining option can be used to select
background mining when a wallet loads. The user will be asked
the first time the wallet is created.
2019-04-04 18:10:45 +00:00
moneromooo-monero
def4016171
miner: fix race when stopping mining with start mining enabled
2019-04-01 19:28:50 +00:00
moneromooo-monero
adaea3ea3c
various: remove unused variables
2019-04-01 19:24:41 +00:00
Riccardo Spagni
574c399386
Merge pull request #5288
...
39f000b3
miner: fix possible exit crash due to race in stop (moneromooo-monero)
2019-04-01 17:20:25 +02:00
moneromooo-monero
c84ea2993f
cryptonote_basic: some more minor speedups
2019-03-25 13:43:38 +00:00
moneromooo-monero
e40eb2ad9d
cryptonote_basic: speedup calculate_block_hash
...
The block 202612 fix can be left tested at the end, if we
already know we're not in the general case
2019-03-25 13:43:29 +00:00
moneromooo-monero
547a9708de
cryptonote: block parsing + hash calculation speedup
...
This saves a duplicate serialization step
2019-03-25 13:43:17 +00:00
moneromooo-monero
91f4c7f45f
Make difficulty 128 bit instead of 64 bit
...
Based on Boolberry work by:
jahrsg <jahr@jahr.me>
cr.zoidberg <crypto.zoidberg@gmail.com>
2019-03-24 21:03:19 +00:00
Riccardo Spagni
8cb4293e82
Merge pull request #5277
...
adf6d773
wallet: fix offline signing calling a daemon RPC (moneromooo-monero)
2019-03-24 19:35:39 +02:00
moneromooo-monero
e9519e9876
cryptonote: fix calculating coinbase tx hash
...
Also set error flag on exception when handling new txes
to keep tests working
2019-03-21 17:13:01 +00:00
moneromooo-monero
adf6d7730f
wallet: fix offline signing calling a daemon RPC
2019-03-21 14:46:29 +00:00
Riccardo Spagni
cac4c3103a
Merge pull request #5271
...
2790d4d3
hardfork: update last_versions on popped block (moneromooo-monero)
2019-03-21 14:52:02 +02:00
Riccardo Spagni
48e3a341f8
Merge pull request #5211
...
c9b13fbb
tests/trezor: HF9 and HF10 tests (Dusan Klinec)
a1fd1d49
device/trezor: HF10 support added, wallet::API (Dusan Klinec)
d74d26f2
crypto: hmac_keccak added (Dusan Klinec)
2019-03-21 14:44:04 +02:00
Dusan Klinec
a1fd1d499c
device/trezor: HF10 support added, wallet::API
...
- import only key images generated by cold signing process
- wallet_api: trezor methods added
- wallet: button request code added
- const added to methods
- wallet2::get_tx_key_device() tries to decrypt stored tx private keys using the device.
- simplewallet supports get_tx_key and get_tx_proof on hw device using the get_tx_key feature
- live refresh enables refresh with trezor i.e. computing key images on the fly. More convenient and efficient for users.
- device: has_ki_live_refresh added
- a thread is watching whether live refresh is being computed, if not for 30 seconds, it terminates the live refresh process - switches Trezor state
2019-03-20 21:11:02 +01:00
Riccardo Spagni
848591c4d8
Merge pull request #5190
...
551104fb
daemon: add --public-node mode, RPC port propagation over P2P (xiphon)
2019-03-17 17:56:04 +02:00
Riccardo Spagni
429930534d
Merge pull request #5185
...
59478c80
daemon: new mining_status command (moneromooo-monero)
2019-03-17 17:55:32 +02:00
Riccardo Spagni
50d48d6118
Merge pull request #5135
...
de32dcea
Human readable message if maximum outputs reached (italocoin)
2019-03-17 17:50:41 +02:00
moneromooo-monero
39f000b394
miner: fix possible exit crash due to race in stop
...
If a thread asks to stop the miner, m_stop will be set, and
that thread will wait to join. If the main thread is exiting
at that time, it will ask the miner to stop, but the miner
will claim it's not mining and early out since m_stop is
set. This will cause the database and other things to get
shutdown. If the miner happens to find a block at that time,
it will try to call core, and crash.
Instead, lock and check whether any threads are currently
in m_threads, since they'll only be cleared once the threads
are joined. Moreover, since we lock, the second thread will
have to wait for the first one to have finished. Calling
join twice on a thread seems fine as per pthread_join(3).
2019-03-14 16:59:08 +00:00
moneromooo-monero
2790d4d30a
hardfork: update last_versions on popped block
2019-03-12 13:43:12 +00:00
moneromooo-monero
59478c80dd
daemon: new mining_status command
2019-03-09 20:51:53 +00:00
binaryFate
1f2930ce0b
Update 2019 copyright
2019-03-05 22:05:34 +01:00
moneromooo-monero
9feda0eeba
cryptonote: speed up calculating coinbase tx prunable hash
...
It's a hash of an empty buffer, so we can avoid keccak
2019-03-05 11:58:16 +00:00
moneromooo-monero
f75d51abda
core: avoid calculating tx prefix hash when we don't need it
2019-03-05 11:57:57 +00:00
moneromooo-monero
e69477bf25
db: speedup block addition
...
by avoiding repeated (de)serialization
2019-03-05 10:28:52 +00:00
moneromooo-monero
23abe60705
check load_t_from_json return values
2019-03-04 22:38:06 +00:00
moneromooo-monero
e396146aee
default initialize rpc structures
2019-03-04 22:38:03 +00:00
Riccardo Spagni
42adc50766
Merge pull request #5125
...
8298f42e
miner: it can now autodetect the optimal number of threads (moneromooo-monero)
2019-03-04 21:27:16 +02:00
moneromooo
807903bbbf
hardfork: fix fork determination for historical heights
2019-03-04 11:19:59 +00:00
Riccardo Spagni
1b4fa00d7c
Merge pull request #5126
...
f1fb06b1
Fixed path to int-util.h (SChernykh)
9da0892b
Adding cnv4-2 tweaks (SChernykh)
f51397b3
Cryptonight variant 4 aka CryptonightR (SChernykh)
2019-03-04 12:10:16 +02:00
xiphon
551104fbf1
daemon: add --public-node mode, RPC port propagation over P2P
2019-02-25 02:40:23 +03:00