Commit graph

13041 commits

Author SHA1 Message Date
Jason Rhinelander
35e49dab57
Merge pull request #1299 from jagerman/no-readline
Disable readline in static build
2020-10-02 18:07:57 -03:00
Jason Rhinelander
59104a7c8b Delay HF16 to 12 October 2020-10-02 12:44:45 -03:00
Jason Rhinelander
faa92db523 Delay HF16 to 12 October 2020-10-02 12:41:14 -03:00
Jason Rhinelander
4fd9a7dff5 Disable readline in static build 2020-10-02 01:02:48 -03:00
Jason Rhinelander
9ae405c06c Merge commit '61d6564bc' into dev 2020-10-01 21:27:38 -03:00
Jason Rhinelander
61d6564bc3 Remove -dev suffix for stable branch 2020-10-01 21:21:37 -03:00
Jason Rhinelander
b36a24bcd7 Merge branch 'master' into dev 2020-10-01 19:56:26 -03:00
Jason Rhinelander
fb3b5de0f2
Merge pull request #1151 from darcys22/cache-lns-records
Cache lns records
2020-10-01 15:37:27 -03:00
Jason Rhinelander
c3f56c317d
Merge pull request #1297 from Doy-lee/BlinkReturnStatus
Blink: Only request blinks to wallet when approved
2020-10-01 15:06:25 -03:00
Jason Rhinelander
f96eed604c Add RPC endpoint to access known names 2020-10-01 15:02:51 -03:00
Jason Rhinelander
b1f5de4bce Compilation fix + autoize 2020-10-01 14:22:53 -03:00
Ubuntu
e0df4ca4c9 adjust for 20.04 2020-10-01 14:19:36 -03:00
Sean Darcy
9571d41e0f cleaned up notes 2020-10-01 14:16:15 -03:00
Sean Darcy
302bcfc6ca unordered map, added to RPC commands 2020-10-01 14:16:14 -03:00
Sean Darcy
87ecffa61b Creates a Cache in the CLI Wallet for LNS Records
The lns records are stored on the blockchain in a hashed state so the
name and value are not immediately accessable. This creates a store in
the wallet so the unhashed details are saved and can be viewed at a
later date.
2020-10-01 14:11:30 -03:00
Sean Darcy
12fc6a2592 print_owners_to_names now shows cached names and values 2020-10-01 14:06:04 -03:00
Sean Darcy
b734843d77 Saves to LNS cache and retrieves 2020-10-01 13:59:33 -03:00
Sean Darcy
f77fca124d functions to save to cache 2020-10-01 13:58:16 -03:00
Sean Darcy
f679a7f275 LNS detail struct created and vector for cache 2020-10-01 13:57:03 -03:00
Jason Rhinelander
0d8a891cc7
Merge pull request #1280 from sarawut11/fix/rip-out-decimal-place
Rip out configurable decimal places
2020-10-01 13:44:43 -03:00
Jason Rhinelander
d3853581cd Remove unit from "help set" and "set" display 2020-10-01 13:44:20 -03:00
Doyle
6fbb2caf7a wallet: Remove unused long poll max connections status 2020-10-01 18:17:41 +10:00
Doyle
e48c97a962 Blink: Make wallet only long poll blinks
- Sometimes the wallet would query TX's before they are blink approved
and get cached into the wallet as a normal TX preventing external
services from using 0-confirmation on transactions.

We make the wallet only conduct long-polling for blinks in order to
notice the transaction after blink. The downside here is that normal
mempool transacations won't appear until they are placed into a block.

With Pulse this is mitigated with reliable within sub-seconds of
a target 2 min block time.
2020-10-01 18:17:41 +10:00
Jason Rhinelander
915e6109f6
Bump version to 8.1.0 and set HF16/17 fork times (#1295) 2020-10-01 11:36:25 +10:00
Doyle
58ab1e9c85
Blink: Remove deprecated bool blink in wallet RPC interface (#1294) 2020-10-01 10:36:34 +10:00
Doyle
fd7c661b9a
Merge pull request #1292 from Doy-lee/StorageServer207
HF16: Set min storage server version to 2.0.7
2020-10-01 10:09:01 +10:00
Doyle
8537fb0d4d HF16: Set min lokinet version to 0.8.0 2020-10-01 10:03:06 +10:00
Jason Rhinelander
aec3a57d80
Fix config file parsing to recognize hidden options (#1293)
The old deprecated zmq-rpc-bind-port and other hidden deprecated options
weren't being properly recognized when in a config file because only the
visible settings were passed in.  This fixes it to also pass in hidden
settings.
2020-10-01 09:51:16 +10:00
Doyle
d859605b11 HF16: Set min storage server version to 2.0.7 2020-09-30 16:21:16 +10:00
Doyle
93950ca681
Merge pull request #1290 from Doy-lee/PrecomputedBlockHashUpdates
Precomputed block hash updates
2020-09-30 15:29:19 +10:00
Doyle
510bdd1fdf
Merge pull request #1291 from Doy-lee/RescanDifficultyFixes
Rescan Difficulty Fix
2020-09-30 14:29:04 +10:00
Doyle
5dc7b01d9a blockchain: Fix non-checkpointed blocks skipping verification 2020-09-30 14:08:26 +10:00
Doyle
bbc11c754c rescan_diffic: Correctly iterate blocks loop 2020-09-30 13:13:37 +10:00
Doyle
f8caed218d blockchain: Fix pre-computed block hash verification failure 2020-09-30 12:23:32 +10:00
Doyle
c8dd8e6152 blocks: Regenerate block hashes
- Change size_needed to expect 1 hash instead of 2. 2 hashes is when
Monero added tx pruning and they include a secondary hash for those
purposes. At Loki we don't quite support pruning yet as blocks are
needed for the Service Node network to operate.
2020-09-30 12:17:26 +10:00
Doyle
72700383ce rescan_diffic: Simplify params, update cli arg in blockchain_import 2020-09-30 11:17:12 +10:00
Jason Rhinelander
a0bfda8e25 Bump version with testnet fixes 2020-09-29 20:26:52 -03:00
Jason Rhinelander
c57a1b3a21
Merge pull request #1276 from Doy-lee/PulseCleanupFillBlockTemplate
Pulse: Cleanup fill block template + bug
2020-09-29 19:41:09 -03:00
Doyle
1aa9eb280c
wallet: Return true when immutable_height is set (#1289) 2020-09-29 14:29:01 +10:00
Doyle
2f9a3e2651
Merge pull request #1288 from jagerman/wallet-rpc-multiwallet-segfault-fix
Wallet rpc --wallet-dir segfault fix
2020-09-29 12:19:56 +10:00
Jason Rhinelander
9678a7de5f
Make static build compile for deprecit hardware (#1287) 2020-09-29 12:16:16 +10:00
Jason Rhinelander
688a2ee733 Fix --wallet-dir rpc wallet segfault
The long polling through was living beyond the wallet destruction and
reconstruction when the rpc wallet opened a new wallet.

Fixed it by synchronously shutting down and restarting the thread when
we close/open a wallet.
2020-09-28 16:44:46 -03:00
Jason Rhinelander
8ee8962159 constexpr and simplify base58 conversion code
C++14/17 allow this to be cleaned up quite a bit and completely avoid
allocating run-time vectors in favour of compile-time constexpr values.
2020-09-28 16:43:38 -03:00
sarawut
351ff25527 fix comments 2020-09-28 18:59:31 +10:00
Doyle
ee19af8a42 Pulse: Add more logging for when quorum signatures fail 2020-09-27 18:21:45 +10:00
Doyle
18885e153c blockchain: Correctly report/assign PULSE difficulty on alt blocks 2020-09-27 16:59:46 +10:00
Doyle
4d589f7cec blockchain: Log more useful data 2020-09-27 16:38:19 +10:00
Jason Rhinelander
e496e502f2
LMQ: get config directory from core instead of arg parsing (#1284)
There are some cases where core modified the config folder that the
default lmq control socket would miss; this cleans it up to get the
config folder from core rather than trying to use core's command-line
argument.
2020-09-27 13:57:07 +10:00
Jason Rhinelander
b608d6027d
Fix JSON serialization of pulse block data (#1286)
There was a missing call to nested the values in an object, so the
resulting json ended up as:

    "pulse":,"random_value":"b01b8d1290cbac40917a23a08b343bec","round":0,"validator_bitset":2047,

instead of:

    "pulse":{"random_value":"b01b8d1290cbac40917a23a08b343bec","round":0,"validator_bitset":2047},

Modernize it to avoid macros, and fix it by beginning an object.

(This won't affect binary serialization; object serialization only has
an effect on json serialization and is a no-op for binary
serialization).
2020-09-27 13:56:37 +10:00
Jason Rhinelander
ffdb3c7707
Fix loki-blockchain-import missing qnet callback init (#1285) 2020-09-27 13:55:21 +10:00