Commit Graph

7458 Commits

Author SHA1 Message Date
lateminer
30966b05d9 Add pblock declaration in BlockAssembler::AddToBlock() 2018-11-09 20:41:40 +03:00
lateminer
a329674df6 Add proof-of-stake check in BlockAssembler::addPriorityTxs() 2018-11-02 00:48:18 +03:00
lateminer
3439588591 Update translations from Bitcoin Core 0.14 2018-11-01 21:43:13 +03:00
lateminer
6cdb9a7907 Set nStakeModifier correctly 2018-10-31 23:21:10 +03:00
lateminer
76d0663369 vTxSigOps -> vTxSigOpsCost 2018-10-30 00:31:21 +03:00
MarcoFalke
762df8afbe [doc] Remove outdated line from listunspent RPC help, fix typo 2018-10-29 22:05:10 +03:00
Chris Moore
a1198bd44d fix spelling mistake 2018-10-29 22:04:06 +03:00
Chris Moore
68e4ae75d3 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).
2018-10-29 22:03:57 +03:00
Jonas Schnelli
1f742d5e59 [Wallet][RPC] add missing abandon status documentation 2018-10-29 22:03:29 +03:00
Wladimir J. van der Laan
3ef2c26f90 test: test leading space for ParseHex
BerkeleyDB dump files have key and value lines indented.
The salvage code passes these to ParseHex as-is.
Check this in the tests (should just pass with current code).
2018-10-29 21:56:21 +03:00
mrbandrews
0983e39965 Fixes ZMQ startup with bad arguments. 2018-10-29 21:52:20 +03:00
lateminer
414b8b267d Partly add amount output
605e8473a7 (diff-1dbee12e01d094e7366545ec024c5041)
2018-10-29 21:38:53 +03:00
Thomas Kerin
19820c1f9f [libconsensus] Script verification API with amounts 2018-10-29 21:07:14 +03:00
lateminer
55842c9d7a Add missing nTime parameter for coinbase transaction
miner.cpp
2018-10-26 01:17:10 +03:00
lateminer
7f3a40f51d Remove redefined functions
rpc/blockchain.cpp
2018-10-26 01:16:55 +03:00
Sev
e1f964bd02 Corrected JSON typo on setban of net.cpp
Github-Pull: #8512
Rebased-From: 6ffd996b8ee5f36ed4490410385f9b072da5889b
2018-10-25 22:02:25 +03:00
Chris Moore
5b2b334c1c fix typo in help text
'in which the transaction is included in'
2018-10-25 21:49:59 +03:00
Daniel Cousens
77e1ba55a0 rpc: update inline comments to refer to new file paths 2018-10-25 21:46:46 +03:00
Suhas Daftuar
7ce9eda70a Add ancestor statistics to mempool entry RPC output 2018-10-25 21:43:15 +03:00
Suhas Daftuar
3af359a022 Add getmempoolentry RPC call 2018-10-25 21:42:51 +03:00
Suhas Daftuar
29625f45c0 Add getmempooldescendants RPC call 2018-10-25 21:42:40 +03:00
Suhas Daftuar
eed964d168 Add getmempoolancestors RPC call 2018-10-25 21:41:56 +03:00
Suhas Daftuar
9a9ee1144b Refactor logic for converting mempool entries to JSON 2018-10-25 21:39:26 +03:00
S. Matthew English
5b64f86866 instance of 'mem pool' to 'mempool' 2018-10-25 21:39:04 +03:00
MarcoFalke
2fff808551 [rpc] throw JSONRPCError when utxo set can not be read
Github-Pull: #8832
Rebased-From: fa05cfdf256f3bc13b89ea80231e342f4302d204
2018-10-25 21:36:14 +03:00
Pavel Janík
58eab43cdc The bit field is shown only when status is "started" 2018-10-25 21:36:01 +03:00
João Barbosa
6521c85f30 Improve COutPoint less operator 2018-10-25 21:07:58 +03:00
Pieter Wuille
88c725c6ac Reformat version in UpdateTip and other messages 2018-10-25 21:06:16 +03:00
Matthew English
52bcc93c77 Doc: Update isStandardTx comment 2018-10-25 20:53:34 +03:00
Marcel Krüger
aab3e6a293 Removed comment about IsStandard for P2SH scripts
Since #4365 (6259937388) P2SH scripts do not have to be IsStandard scripts.
2018-10-25 20:53:19 +03:00
lateminer
074b90fab2 Remove COUNT_ACKS leftover 2018-10-25 20:52:22 +03:00
Johnson Lau
55f62b1f68 Add policy: null signature for failed CHECK(MULTI)SIG 2018-10-25 20:51:48 +03:00
lateminer
bb407424fa Remove relaying of double-spends 2018-10-25 20:37:40 +03:00
lateminer
91698d9fd4 Remove -respendnotify option 2018-10-25 20:04:44 +03:00
lateminer
9558397bb7 Add more checks for coinstake transactions 2018-10-25 19:58:07 +03:00
lateminer
ea42219781 Prettify coinstake rejecting error message in AcceptToMemoryPoolWorker()
main.cpp
2018-10-25 19:58:05 +03:00
Pieter Wuille
18a2ae2b01 Benchmark SipHash 2018-10-24 23:17:02 +03:00
Wladimir J. van der Laan
3cbcdbd9a1 bench: Fix subtle counting issue when rescaling iteration count
Make sure that the count is a zero modulo the new mask before
scaling, otherwise the next time until a measure triggers
will take only 1/2 as long as accounted for. This caused
the 'min time' to be potentially off by as much as 100%.

Github-Pull: #9200
Rebased-From: e0a9cb25b0af87723d50cb8d8cffa10f1ebf7dcc
2018-10-24 23:15:27 +03:00
Gregory Maxwell
9e09ec5d6b Avoid integer division in the benchmark inner-most loop.
Previously the benchmark code used an integer division (%) with
 a non-constant in the inner-loop.  This is quite slow on many
 processors, especially ones like ARM that lack a hardware divide.

Even on fairly recent x86_64 like haswell an integer division can
 take something like 100 cycles-- making it comparable to the
 runtime of siphash.

This change avoids the division by using bitmasking instead. This
 was especially easy since the count was only increased by doubling.

This change also restarts the timing when the execution time was
 very low this avoids mintimes of zero in cases where one execution
 ends up below the timer resolution. It also reduces the impact of
 the overhead on the final result.

The formatting of the prints is changed to not use scientific
 notation make it more machine readable (in particular, gnuplot
 croaks on the non-fixedpoint, and it doesn't sort correctly).

This also hoists out all the floating point divisions out of the
 semi-hot path because it was easy to do so.

It might be prudent to break out the critical test into a macro
 just to guarantee that it gets inlined.  It might also make sense
 to just save out the intermediate counts and times and get the
 floating point completely out of the timing loop (because e.g.
 on hardware without a fast hardware FPU like some ARM it will
 still be slow enough to distort the results). I haven't done
 either of these in this commit.
2018-10-24 23:15:14 +03:00
MarcoFalke
a99d1b2425 [doc] Fix typos in comments, doxygen: Fix comment syntax 2018-10-24 23:08:08 +03:00
Jeremy Rubin
146eff7075 Fix a type error that would not compile on Apple LLVM version 6.1.0... 2018-10-24 23:01:48 +03:00
wodry
5c5f1f9b01 Improvement of documentation of command line parameter 'whitelist'
Github-Pull: #9251
Rebased-From: 8a70a9da3da0df5c376042b18b87f0a63e88d2e3
2018-10-24 22:58:26 +03:00
Matt Corallo
39e1d793ce Fix calculation of number of bound sockets to use
Github-Pull: #9253
Rebased-From: 9e1f46821d5bb69e2cbf25738eefa7c6cb99c838
2018-10-24 22:58:15 +03:00
Wladimir J. van der Laan
62de6f69d5 init: Fix typo in help message for -whitelistforcerelay
Reported by pryds on Transifex in the Danish translation.

Github-Pull: #8607
Rebased-From: 67a55025a1ea5d0461139cd6764686a77524feed
2018-10-24 22:57:05 +03:00
Pieter Wuille
6fe2142990 Do diskspace check before import thread is started
Github-Pull: #8392
Rebased-From: 9d4eb9ad99f7c3abf7abaeaf7ea51f98f9445e75
2018-10-24 22:56:55 +03:00
MarcoFalke
7b21a947fe [init] Make feefilter option debug option 2018-10-24 22:55:42 +03:00
Suhas Daftuar
7ee9a4218a Allow compactblock reconstruction when block is in flight 2018-10-24 22:40:07 +03:00
Gregory Maxwell
6689f09a0a Always drop the least preferred HB peer when adding a new one.
When a BIP152 HB-mode peer is in the least preferred position and
 disconnects, they will not be by ForNode on the next loop. They
 will continue to sit in that position and prevent deactivating
 HB mode for peers that are still connected.

There is no reason for them to stay in the list if already gone,
 so drop the first element unconditionally if there are too many.

Fixes issue #9163.

Github-Pull: #9199
Rebased-From: ca8549d2bd32f17f8b69d1edbe3f2976fba504b4
2018-10-24 22:37:48 +03:00
Russell Yanofsky
dc8f0bd8de Modify getblocktxn handler not to drop requests for old blocks 2018-10-24 22:35:37 +03:00
Matt Corallo
7796e0a7d9 Dont remove a "preferred" cmpctblock peer if they provide a block
Github-Pull: #8637
Rebased-From: 02a337defdd854efc78ecba6d1fb19cb1c075f16
2018-10-24 22:15:40 +03:00