snogcel
913baaf88b
updated buttons
2015-03-19 07:16:24 -06:00
Cory Fields
8752b5c882
0.10 fix for crashes on OSX 10.6
...
strnlen is available at build-time but not at runtime, causing a crash.
0.11 drops support for 10.6, so this is not needed in master.
2015-03-19 00:14:28 -04:00
Evan Duffield
8f39610ee4
Merge branch 'v0.11.2.x' of https://github.com/darkcoinproject/darkcoin into v11.2-dash
2015-03-18 12:50:02 -07:00
Evan Duffield
e82c88ecbd
increasing ds timeouts
2015-03-18 10:19:13 -07:00
Evan Duffield
a1ac7ca8d3
Fixed blinding submission process
2015-03-18 09:47:01 -07:00
Evan Duffield
07eddca0f1
Fixed blinding submission process
2015-03-18 09:43:29 -07:00
Evan Duffield
d83646f5b9
Fixed blinding submission process
2015-03-18 09:41:30 -07:00
evan82
4d7db44afa
Merge pull request #252 from snogcel/v0.11.2.x
...
Window Resizing Fixes
2015-03-18 06:30:58 -07:00
snogcel
686a99f7e1
remove leftover global style
2015-03-18 06:59:14 -06:00
Wladimir J. van der Laan
601327be8c
bump version to 0.10.1 in preparation of RC1
2015-03-18 13:01:10 +01:00
crowning-
8825e7978b
Wrong default them name on initialization fixed
2015-03-18 06:57:42 +01:00
snogcel
243975a610
window resize fix
2015-03-17 22:17:11 -06:00
evan82
7ce4090da9
Merge pull request #250 from crowning-/v0.11.2.x
...
Icons for outgoing transactions changed back to the color red
2015-03-17 16:14:20 -07:00
Evan Duffield
80eafa36d5
fixed dsee sync
2015-03-17 16:12:06 -07:00
Evan Duffield
35bb210c6b
Dash rebranding
2015-03-17 16:06:58 -07:00
crowning-
2633df7c4b
Icons for outgoing transactions changed back to the color red
2015-03-17 21:38:22 +01:00
Pieter Wuille
ca301bf98c
Reduce fingerprinting through timestamps in 'addr' messages.
...
Suggested by Jonas Nick.
Rebased-From: 9c2737901b
Github-Pull: #5860
2015-03-17 16:39:10 +01:00
Evan Duffield
820e660e10
version bump / protocol bump
2015-03-17 04:42:32 -07:00
UdjinM6
0655c17175
bring mn inputage/sigtime checks back (+regtest support)
2015-03-17 04:10:19 +03:00
Evan Duffield
ad08533977
removed default donation for testing
2015-03-16 15:36:17 -07:00
Evan Duffield
1f47914316
fixed bugs / removed spam
2015-03-16 15:25:15 -07:00
UdjinM6
567fe419d9
fix pubkey/donation conditions
2015-03-17 00:11:15 +03:00
Evan Duffield
c65adeb7d1
Fixed mnw message issue
2015-03-16 13:57:07 -07:00
UdjinM6
19bb9932be
v0.11.2.x mn-donations - read from masternode.conf and rpc list-conf parts
2015-03-16 22:54:22 +03:00
Evan Duffield
8cd7f8e980
Add structure for donating a percentage of ones earnings to another party via the protocol
2015-03-16 12:01:11 -07:00
Evan Duffield
819724ad1d
merged proof-of-service
2015-03-16 09:40:39 -07:00
Evan Duffield
e5267319ef
Complete implementation of Proof-of-Service
...
- Ensures ports remain open and client are responsive to IX requests.
- Completely 100% decentralized. This farms out the work of checking the masternode network to the masternode network. 1% of the network is determistically selected to check another 1% of the network each block. It takes six separate checks to deactivate a node, thus making it tamper proof.
- Nodes are kept in the masternode list if they fail enough PoSe checks to deactivate. They will continue to be checked until the operator fixes them. However they will not be paid while they're failing checks.
2015-03-16 09:32:18 -07:00
evan82
3c8234853f
Merge pull request #245 from UdjinM6/v0.11.2.x_fix_litemode_consistency
...
V0.11.2.x fix litemode consistency for anon balance quering
2015-03-16 07:26:39 -07:00
evan82
3fb8f869de
Merge pull request #244 from UdjinM6/v0.11.2.x_masternoderanks
...
V0.11.2.x masternoderanks
2015-03-16 07:26:03 -07:00
evan82
7d9d2d0297
Merge pull request #243 from UdjinM6/v0.11.2.x_net_specific_conf
...
V0.11.2.x network specific masternode.conf
2015-03-16 07:25:25 -07:00
evan82
feabff60a8
Merge pull request #242 from UdjinM6/v0.11.2.x_verify_dsq_vin
...
V0.11.2.x verify dsq vin
2015-03-16 07:25:04 -07:00
evan82
4b0cdb4834
Merge pull request #241 from UdjinM6/v0.11.2.x_cleanup
...
V0.11.2.x cleanup
2015-03-16 07:24:44 -07:00
evan82
042308c289
Merge pull request #240 from UdjinM6/v0.11.2.x_fix_mac_tab_hotkeys
...
v0.11.2.x fix mac tab hotkeys
2015-03-16 07:24:01 -07:00
evan82
e34292f76d
Merge pull request #239 from UdjinM6/v0.11.2.x_fix_toolbar_styling
...
V0.11.2.x fix toolbar styling
2015-03-16 07:23:42 -07:00
evan82
68ea5960b3
Merge pull request #236 from UdjinM6/v0.11.2.x_fix_nulls__close_btn
...
V0.11.2.x fix nulls & close btn behavior
2015-03-16 07:21:53 -07:00
Jonas Schnelli
2c0840631d
[QT] some mac specifiy cleanup (memory handling, unnecessary code)
...
Rebased-From: 8b60808c1e
Github-Pull: #5880
2015-03-16 13:56:34 +01:00
Jonas Schnelli
81145a6ccd
[QT] fix OSX dock icon window reopening
...
fixes #5878
Rebased-From: 89e70e931d
Github-Pull: #5880
2015-03-16 13:56:13 +01:00
UdjinM6
f81d52da1e
check fLiteMode on GetAnonymizedBalance in wallet instead of walletmodel
2015-03-15 21:19:25 +03:00
UdjinM6
6933d17a80
- new function GetMasternodeRanks returns full masternode rank list
...
- use GetMasternodeRanks in "masternode list rank" instead of GetMasternodeRank
- small cleanup
2015-03-14 21:37:43 +03:00
UdjinM6
35b50eea87
Use network specific masternode.conf
2015-03-14 02:22:32 +03:00
evan82
9b1bc951f2
Merge pull request #238 from UdjinM6/v0.11.2.x_9999_mainnet_only
...
v0.11.2.x Parse masternode.conf only after network is recognized
2015-03-13 10:01:53 -07:00
UdjinM6
43712ff4de
Verify that dsq.vin is actually in our masternode list (otherwise we might hit NULL and think that we use queue at the same time while we are not)
2015-03-13 19:00:44 +03:00
UdjinM6
53c3a5e24c
Cleanup few debug msgs, reduce log spam / few readability fixes
2015-03-13 18:53:12 +03:00
UdjinM6
0894b4ae1e
For Mac it's more common to switch tabs by "cmd + number" instead of "alt + number". Note: CTRL refers to cmd key on Mac.
2015-03-13 18:38:46 +03:00
UdjinM6
761c8fbae3
Create additional container for toolbar and walletFrame and make it the central widget. This is a workaround mostly for toolbar styling on Mac OS but should work fine for every other OSes too.
2015-03-13 18:26:42 +03:00
UdjinM6
b96bd3afc2
Parse masternode.conf only after network is recognized
2015-03-13 18:16:25 +03:00
UdjinM6
b0a91997de
Merge branch 'v0.11.2.x' into v0.11.2.x_fix_nulls__close_btn
2015-03-13 03:30:33 +03:00
evan82
3fdb01087d
Merge pull request #237 from UdjinM6/v0.11.2.x_9999_mainnet_only
...
V0.11.2.x allow port 9999 for MNs on mainnet only
2015-03-12 17:12:01 -07:00
Alex Morcos
c91c660e49
fix InvalidateBlock to repopulate setBlockIndexCandidates
...
Rebased-From: a9af415887
Github-Pull: #5879
2015-03-12 17:51:00 +01:00
UdjinM6
dafc6334ab
close wallet regardless of "minimize to tray" settings
2015-03-12 15:40:41 +03:00
Philip Kaufmann
6a0687b061
[Qt] add more NULL pointer checks in bitcoingui
...
- add missing checks for clientModel and optionsModel
- small cleanups for an #ifdef on Mac
- remove an unneeded else
2015-03-12 15:38:19 +03:00
UdjinM6
3bb912d8c3
allow 9999 for MNs on mainnet only
2015-03-11 22:26:39 +03:00
Cory Fields
002c8a2411
fix possible block db breakage during re-index
...
When re-indexing, there are a few cases where garbage data may be skipped in
the block files. In these cases, the indices are correctly written to the index
db, however the pointer to the next position for writing in the current block
file is calculated by adding the sizes of the valid blocks found.
As a result, when the re-index is finished, the index db is correct for all
existing blocks, but the next block will be written to an incorrect offset,
likely overwriting existing blocks.
Rather than using the sum of all valid blocks to determine the next write
position, use the end of the last block written to the file. Don't assume that
the current block is the last one in the file, since they may be read
out-of-order.
Rebased-From: bb6acff079
Github-Pull: #5864
2015-03-11 08:34:43 +01:00
crowning2
978ca789ba
Display default theme when nothing was configured (fixed)
2015-03-10 22:15:20 +01:00
crowning2
470941cdf8
Display default theme when nothing was configured
2015-03-10 21:37:32 +01:00
snogcel
839b40e3c6
drkblue theme v0.1.0.4
2015-03-10 07:05:13 -06:00
crowning2
effd3f39b2
Minor refactoring
2015-03-10 09:09:41 +01:00
snogcel
a49668b473
drkblue theme v0.1.0.3
2015-03-09 20:32:29 -06:00
crowning2
acf9935b54
DRK-blue is now default theme
2015-03-09 23:46:59 +01:00
crowning2
ff8fe33c49
Old icons replaced with Darkcoil icons
2015-03-09 22:59:47 +01:00
Ivan Pustogarov
200f29363b
Ignore getaddr messages on Outbound connections.
...
The only time when a client sends a "getaddr" message is when he
esatblishes an Outbound connection (see ProcessMessage() in
src/main.cpp). Another bitcoin client is expected to receive a
"getaddr" message only on Inbound connection. Ignoring "gettaddr"
requests on Outbound connections can resolve potential privacy issues
(and as was said such request normally do not happen anyway).
Rebased-From: dca799e1db
Github-Pull: #5442
2015-03-09 12:25:20 +01:00
Pieter Wuille
d5d8998028
Limit message sizes before transfer
...
This introduces a fixed limit for the size of p2p messages, and enforces it
before download.
Rebased-From: ba04c4a780
Github-Pull: #5843
2015-03-09 11:13:35 +01:00
Jonas Schnelli
786cf72c7f
[Qt] fix a issue where "command line options"-action overwrite "Preference"-action (on OSX)
...
- fixes #5800
Conflicts:
src/qt/bitcoingui.cpp
Rebased-From: 9bbb880be4
Github-Pull: #5858
2015-03-09 11:05:43 +01:00
crowning2
34e26d4bf5
Switched from dynamic CSS to build-in CSS
2015-03-08 19:43:31 +01:00
crowning2
ca89c5d49f
CSS-file moved to res/css/
2015-03-08 19:30:15 +01:00
crowning2
a3549ee71e
CSS-file temp. removed
2015-03-08 19:26:22 +01:00
snogcel
90368608a5
drkblue theme v0.1.0.2
2015-03-08 10:37:20 -06:00
crowning2
bfa8549377
Merge 'upstream/v0.11.2.x' into v0.11.2.x
2015-03-08 16:08:49 +01:00
Evan Duffield
441103ea71
update relay rules - protocol/version bump
2015-03-08 07:49:04 -07:00
crowning2
34c0bd3c1b
CSS-loader refactored for ease of maintenance
2015-03-08 13:38:56 +01:00
crowning2
a8b42a0dd4
Merge remote-tracking branch 'origin/v0.11.2.x' into v0.11.2.x
2015-03-08 10:50:12 +01:00
crowning2
8daadca14a
Removed absolute placements of QDialogs from CSS
2015-03-08 10:43:10 +01:00
crowning2
61a06ebacf
Absolute position of options-dialog in CSS removed
2015-03-08 10:37:07 +01:00
snogcel
d8f894fb6b
Merge branch 'v0.11.2.x' of http://www.github.com/crowning2/darkcoin into v0.11.2.x
2015-03-08 01:34:40 -07:00
snogcel
f793d4ae31
drkblue theme v0.1.0.1
2015-03-08 01:34:09 -07:00
crowning2
630a16ae1a
Merge 'upstream/v0.11.2.x' into v0.11.2.x
2015-03-08 08:01:39 +01:00
Evan Duffield
8726e80132
version/protocol bump
2015-03-07 18:52:37 -07:00
snogcel
1bddd73139
drkblue theme v0.1.0.0
2015-03-07 17:58:09 -07:00
crowning2
28b877e790
Missing include added/modifed
2015-03-07 19:10:56 +01:00
crowning2
59bb5bec12
Merge 'upstream/v0.11.2.x' into v0.11.2.x
2015-03-07 16:48:44 +01:00
Evan Duffield
a8f5743999
version bump
2015-03-07 07:51:23 -07:00
Evan Duffield
c169e49fce
Added input/output/sig trickle
...
- Send a few inputs/output each cycle
- Mix other users inputs/outputs into relay each cycle
- Send signatures as a tickle, also mixed with other users signatures
- Fixed a bug with validating the final transaction
2015-03-07 07:50:14 -07:00
crowning2
db0dac64dc
Build fix for src/qt/Makefile.am
2015-03-07 10:59:36 +01:00
snogcel
9e22d0d3fc
CSS WIP v11
2015-03-07 01:07:55 -07:00
crowning2
fd865303f1
Added new resources to QT-Makefile
2015-03-07 01:43:42 +01:00
crowning2
e5b41852e3
darkcoin.qrc reformat
2015-03-06 23:33:31 +01:00
crowning2
7793b2d4f0
Added new images/icons to resource file and adjusted CSS.file
2015-03-06 23:10:23 +01:00
crowning2
5f3ac99782
Merge 'origin/v0.11.2.x' into v0.11.2.x
2015-03-06 22:24:48 +01:00
crowning2
552e30d646
Merge 'upstream/v0.11.2.x' into v0.11.2.x
2015-03-06 22:24:20 +01:00
evan82
a086a6abe3
Merge pull request #233 from UdjinM6/v0.11.2.x_save_dsqcount
...
V0.11.2.x save nDsqCount in mncache.dat
2015-03-06 12:27:35 -07:00
UdjinM6
b5414e1c3c
save nDsqCount in mncache.dat
2015-03-06 20:59:19 +03:00
Mike Kinney
1d9c0b1ebc
Merge branch 'v0.11.2.x' of https://github.com/darkcoin/darkcoin into v0.11.2.x-remove-unused
2015-03-06 06:14:12 -08:00
Mike Kinney
7ed8073010
v0.11.2.x remove unused variables
2015-03-06 06:13:58 -08:00
evan82
9f124d56b6
Merge pull request #231 from mkinney/v11.2-comments
...
V0.11.2.x comments
2015-03-06 07:04:44 -07:00
evan82
2a6d51af8d
Merge pull request #229 from UdjinM6/v0.11.2.x_fix_strings
...
V0.11.2.x fix strings
2015-03-06 07:02:28 -07:00
evan82
953e978424
Merge pull request #228 from UdjinM6/v0.11.2.x_masternodes.dat_rename
...
V0.11.2.x rename masternodes.dat
2015-03-06 07:02:16 -07:00
Mike Kinney
ed3e22d1f0
remove trailing space
2015-03-05 23:28:25 -08:00
Mike Kinney
757128bfe0
v0.11.2.x Updating comments
2015-03-05 23:24:34 -08:00
snogcel
645a77f5e7
CSS WIP v10
2015-03-05 21:55:06 -07:00
crowning2
142b6fb32c
Merge upstream
2015-03-05 21:43:51 +01:00
UdjinM6
e0714aac5d
fix strings to translate once / typo
2015-03-05 20:42:50 +03:00
UdjinM6
e522cbfd6a
rename masternodes.dat->mncache.dat / fix strings
2015-03-05 20:39:47 +03:00
UdjinM6
2e0d7ab0b6
fix even more console spam
2015-03-05 19:40:17 +03:00
Evan Duffield
5bc821cb5e
Changed max rounds to 6 in UI
...
-Rounds are 100x+ more secure, so even 4 rounds should be highly secure
-If users still want more rounds, they can use the parameter -darksendrounds to use up to 16
2015-03-05 08:28:16 -07:00
Evan Duffield
f63e1ddfd0
Merge branch 'v-1.11.2.x' of https://github.com/darkcoinproject/darkcoin into v0.11.2.x
2015-03-05 08:23:43 -07:00
Evan Duffield
1053c299ed
version/protocol bump
2015-03-05 08:23:21 -07:00
Evan Duffield
9aca26d220
merged mkinney-v0.11.2
2015-03-05 08:18:45 -07:00
evan82
ed57dd2695
Merge pull request #224 from vertoe/devel-0.9
...
Merge master, translations, upstream
2015-03-05 08:16:08 -07:00
evan82
5965bec6ba
Merge pull request #222 from UdjinM6/v0.11.2.x_reject_too_old_mn
...
v0.11.2.x better old mn filtering
2015-03-05 08:15:01 -07:00
evan82
2773bb1f78
Merge pull request #223 from UdjinM6/v0.11.2.x_fix_console_spam
...
v0.11.2.x fix console spam
2015-03-05 08:14:45 -07:00
evan82
ecd9d4a436
Merge pull request #225 from UdjinM6/v0.11.2.x_masternodes.dat_verification
...
V0.11.2.x masternodes.dat verification
2015-03-05 08:14:27 -07:00
Evan Duffield
c6f0259d9b
fixed shared key usage
2015-03-05 08:08:03 -07:00
Mike Kinney
c8fe5a9cf7
V0.11.2.x update comments
2015-03-05 00:11:56 -08:00
Mike Kinney
98fe439af4
V0.11.2.x update comments
2015-03-05 00:10:15 -08:00
Mike Kinney
b0079d37ad
V0.11.2.x update comments
2015-03-04 23:49:50 -08:00
UdjinM6
2a5d588784
Make masternodes.dat verification more specific, prevent from overwriting corruped files and files with unknown format, give more info in debug.log output
2015-03-05 02:46:50 +03:00
vertoe
c3c53dd8ed
Pull translations from transifex.
2015-03-04 21:23:59 +01:00
vertoe
27121a2c07
Update translation source.
2015-03-04 21:21:37 +01:00
UdjinM6
0595ef80c3
fix console spam
2015-03-04 22:59:51 +03:00
crowning2
0a4aa64346
Daily upstream merge
2015-03-04 20:33:35 +01:00
crowning2
8702795d9d
Daily upstream merge.
2015-03-04 20:32:56 +01:00
UdjinM6
84f4657ff9
Prevent masternodes with protocol less then nMasternodeMinProtocol (set to MIN_PEER_PROTO_VERSION by default now) to be able to stay in masternode list. Scenario: MIN_PEER_PROTO_VERSION was bumped but because we remember masternode we will never ask it for dsee again.
2015-03-04 22:04:02 +03:00
Evan Duffield
119007dd48
fix compiling for windows
2015-03-04 11:17:30 -07:00
evan82
ead462c2bb
Merge pull request #218 from UdjinM6/v0.11.2.x_fix_masternodelist
...
V0.11.2.x fix masternodelist
2015-03-04 10:38:08 -07:00
evan82
0681d3144c
Merge pull request #217 from UdjinM6/v0.11.2.x_fix_ds_ix_fee_calculation_display
...
V0.11.2.x fix ds&ix fee calculation&display
2015-03-04 10:37:22 -07:00
Evan Duffield
ba270619bf
missing file
2015-03-04 10:35:50 -07:00
Evan Duffield
a6b58ab1e8
Merged masternode blinding
2015-03-04 08:58:36 -07:00
snogcel
d53e950671
CSS WIP v9
2015-03-03 23:05:30 -07:00
crowning2
6d58449987
Theme selector added to options-page
2015-03-03 21:49:40 +01:00
crowning2
25ccc86acd
Merge upstream
2015-03-02 21:43:19 +01:00
UdjinM6
d2a1ecf524
add spaces to IP only in full mode
2015-03-02 07:54:34 +03:00
UdjinM6
64c1a8b147
remove "|" to make full mode a bit more compact
2015-03-02 07:45:18 +03:00
UdjinM6
3a4c3e401b
add spaces to table-fy console view of "masternode list"
2015-03-02 07:36:38 +03:00
UdjinM6
62800573cc
fix filtering for "active" (was broken after IP filtering) / reorder modes alphabetically
2015-03-02 07:35:13 +03:00
UdjinM6
4bfdcc181c
fix IX and DS fee calculations / use coincontrol to show live calculations
2015-03-02 07:26:38 +03:00
evan82
96dbba0d5f
Merge pull request #216 from vertoe/devel-0.9
...
Weekly translation updates.
2015-03-01 19:12:31 -07:00
evan82
369ca60da7
Merge pull request #215 from vertoe/devel-0.9-upstr
...
Fix priority calculation in CreateTransaction
2015-03-01 19:10:00 -07:00
evan82
8faca60382
Merge pull request #213 from UdjinM6/v0.11.2.x_fix_monospace_qt_console
...
V0.11.2.x fix spaces/monospace fonts in qt console
2015-03-01 19:08:12 -07:00
evan82
40b2ac6e3e
Merge pull request #211 from UdjinM6/v0.11.2.x_pay_to_oldest_legit
...
V0.11.2.x pay to oldest legit MN
2015-03-01 19:06:17 -07:00
evan82
e2cf12b9de
Merge pull request #210 from UdjinM6/v0.11.2.x_check_exp_mn_on_start
...
V0.11.2.x check expired MNs right on client start
2015-03-01 19:04:22 -07:00
evan82
da8dc22856
Merge pull request #209 from UdjinM6/v0.11.2.x_fix_crash_in_overview
...
V0.11.2.x fix crash on client shutdown
2015-03-01 19:03:13 -07:00
vertoe
092c9c99a2
Pull translations from transifex.
2015-03-02 00:09:33 +01:00
vertoe
6e20247e3e
Extract strings.
2015-03-02 00:08:42 +01:00
vertoe
14bebe4fd7
merge upstream 0.9
2015-03-02 00:04:56 +01:00
UdjinM6
54a78ed036
fix spaces/monospace fonts in qt console
2015-03-01 22:42:57 +03:00
UdjinM6
f4f3f6bd6a
prevent gaming sigTime too much on initial dsee
2015-03-01 18:51:30 +03:00
UdjinM6
b2017ebefa
find oldest legit masternode to pay / naming "now" -> "sigTime"
2015-03-01 18:45:27 +03:00
snogcel
7af7db84c7
CSS WIP v8
2015-03-01 02:15:39 -07:00
snogcel
4a8f81c0e5
Merge remote-tracking branch 'upstream/v0.11.2.x' into v0.11.2.x
2015-03-01 00:52:57 -07:00
UdjinM6
7b1efb8997
show new number of MNs on add/remove in logs / move output to debug level
2015-03-01 03:26:29 +03:00
UdjinM6
4b4b1dc911
disconnect timer on overview page destruction
2015-03-01 03:08:24 +03:00
UdjinM6
80ce3f5a06
clear maps in mnodeman
2015-03-01 03:04:17 +03:00
UdjinM6
4af7c7411a
check and remove expired masternodes on client start / more info on load/flush
2015-03-01 02:56:52 +03:00
evan82
2d3426755c
Merge pull request #207 from UdjinM6/v0.11.2.x_fix_logs
...
V0.11.2.x fix logs
2015-02-27 06:49:31 -07:00
snogcel
fb90f70d90
CSS WIP v7 - Send
2015-02-26 22:05:20 -07:00
snogcel
8001c48c71
Merge remote-tracking branch 'upstream/v0.11.2.x' into v0.11.2.x
2015-02-26 22:02:04 -07:00
UdjinM6
e7bf8d0fe6
Few small log output fixes:
...
- fix DumpMasternodes log output (wasn't really working)
- add log output on CMasternodeMan::Add
- slightly edit CMasternodeMan::CheckAndRemove log output
2015-02-27 04:49:12 +03:00
UdjinM6
14ecda3486
With persistant storage this restriction was way too hard and could lead to dramatically shrinking/not updating masternode list after few restarts with some timeouts
2015-02-27 04:41:17 +03:00
UdjinM6
4fe845bf15
Fix crashes on remove from vector
...
Few more locks and slight iterators optimization
2015-02-27 02:12:43 +03:00
UdjinM6
0747da6b36
Fix versions:
...
- bump PROTOCOL_VERSION (new collaterals are incompatible with 70066)
- define MIN_POOL_PEER_PROTO_VERSION instead of confusing darkSendPool.MIN_PEER_PROTO_VERSION / bump it too
2015-02-26 20:29:57 +03:00
Pieter Wuille
aeb9279228
Better fingerprinting protection for non-main-chain getdatas.
...
With headers-first we can compare against the best header timestamp, rather
than using checkpoints which require code updates to maintain.
Rebased-From: 85da07a5a0
Github-Pull: #5820
2015-02-26 17:14:14 +01:00
evan82
ff297c25e3
Merge pull request #203 from UdjinM6/v0.11.2.x_fix_processmessages
...
V0.11.2.x Few fixes for processing extra messages:
2015-02-26 08:31:45 -07:00
evan82
5b4d27864e
Merge pull request #202 from UdjinM6/v0.11.2.x_fix_doauto
...
V0.11.2.x fix DoAutomaticDenominating:
2015-02-26 08:31:21 -07:00
evan82
1560cb65ed
Merge pull request #201 from UdjinM6/v0.11.2.x_rpc_fixes
...
V0.11.2.x rpc fixes
2015-02-26 08:30:40 -07:00
UdjinM6
1ded1b9ec2
Few fixes for processing extra messages:
...
- call ProcessMessageMasternodePayments on ProcessBlock (lost after moving mnodeman functionality)
- do not process extra functionality messages (DS, IX, spork) on initial download / reindex
2015-02-26 17:40:43 +03:00
Evan Duffield
736e6da6b8
allow searching masternode list by ip address
2015-02-26 07:33:27 -07:00
Evan Duffield
848adbb2d3
Fixed compiling errors
...
std::stoi was introduced in C++11, should probably avoid using it
2015-02-26 07:23:06 -07:00
UdjinM6
56471f8330
fix DoAutomaticDenominating:
...
- check for NULL (result of FindRandom, could happen if masternode list is empty)
- assign submittedToMasternode only when all checks are passed
- naming consistency (mn --> pmn)
2015-02-26 04:55:27 +03:00
snogcel
f99b986ba6
Merge remote-tracking branch 'upstream/v0.11.2.x' into v0.11.2.x
2015-02-25 18:53:21 -07:00
UdjinM6
0d82275d05
rpc: allow "darksend" only with ENABLE_WALLET
2015-02-26 04:48:03 +03:00
UdjinM6
5585850396
rpc fixes:
...
- extended help on "masternode"
- enabled/both modes for "masternode count"
- extended output for "masternode current"
- update help on "getblocktemplate"
2015-02-26 04:35:33 +03:00
evan82
38509c5433
Merge pull request #200 from UdjinM6/v0.11.2.x_fix_few_test
...
V0.11.2.x fix few test (generation/data)
2015-02-25 18:27:08 -07:00
evan82
4254b864ab
Merge pull request #199 from UdjinM6/v0.11.2.x_fix_uri
...
V0.11.2.x fix parseBitcoinURI
2015-02-25 18:26:33 -07:00
evan82
97d88a6fa7
Merge pull request #197 from UdjinM6/v0.11.2.x_masternodemanager
...
V0.11.2.x masternodemanager
2015-02-25 18:26:05 -07:00
UdjinM6
2e05bf212e
Change the way changes are handled:
...
- do not keep track of a single time variable for whole structure change
- save to masternode.dat and clear on checks:
- who's asked for the masternode list and the last time
- who we asked for the masternode list and the last time (will help to prevent dseg ban when restart wallet several times in short period of time)
- which masternodes we've asked for
- do not use timeout for CheckAndRemove (played with that - doesn't make sense actually)
2015-02-26 02:21:28 +03:00
UdjinM6
248420be31
fix few tests
2015-02-25 20:24:15 +03:00
UdjinM6
c172c36885
fix parseBitcoinURI
2015-02-25 20:20:19 +03:00
UdjinM6
0d51e1c90d
better naming/readability (Find)
2015-02-25 14:54:03 +03:00
snogcel
059216acf4
CSS WIP v6
2015-02-24 20:59:37 -07:00
UdjinM6
259752c627
copyright
2015-02-24 17:05:26 +03:00
UdjinM6
d2e3d67a1d
show active/total MNs on info tab / update it in separate timer
2015-02-24 16:24:42 +03:00
UdjinM6
003a1b7d72
track lastTimeChanged for mnodeman and ask for update only if UpdateNeeded
2015-02-24 13:39:29 +03:00
Gregory Maxwell
23126a0a09
Sanitize command strings before logging them.
...
Normally bitcoin core does not display any network originated strings without
sanitizing or hex encoding. This wasn't done for strcommand in many places.
This could be used to play havoc with a terminal displaying the logs,
especially with printtoconsole in use.
Thanks to Evil-Knievel for reporting this issue.
Conflicts:
src/main.cpp
2015-02-24 08:40:07 +01:00
UdjinM6
0cd0e9de6d
add masternodelist to command list (seems to be no way to get "help masternode list" working)
2015-02-24 03:06:13 +03:00
UdjinM6
f57a688fea
clean unused
2015-02-24 02:53:51 +03:00
UdjinM6
dd61090051
move list logic back to rpcdarkcsend and give it a copy of vMasternodes (json dep in mnodeman is ugly, my bad)
2015-02-24 02:48:11 +03:00
UdjinM6
9b13c63c45
trivial fix
2015-02-24 02:45:37 +03:00
UdjinM6
9905be3793
CMasternodeMan - masternode manager class - part4 - fixed rpc/count can return "enabled only"/list can be filtered (everything should be ok)
2015-02-24 02:15:40 +03:00
UdjinM6
dd1c1b7d1c
CMasternodeMan - masternode manager class - part3 - connect ProcessMessage from mnodeman(rpc still broken)
2015-02-23 23:12:33 +03:00
UdjinM6
14e122cbfa
CMasternodeMan - masternode manager class - part2 - fix ProcessMasternodeConnections/ThreadCheckDarkSendPool (still broken)
2015-02-23 23:07:37 +03:00
UdjinM6
adddff85a2
CMasternodeMan - masternode manager class - part1(broken)
2015-02-23 23:01:21 +03:00
Suhas Daftuar
d148f62e00
Acquire CCheckQueue's lock to avoid race condition
...
This fixes a potential race condition in the CCheckQueueControl constructor,
which was looking directly at data in CCheckQueue without acquiring its lock.
Remove the now-unnecessary friendship for CCheckQueueControl
Rebased-From: cf008ac8c3
Github-Pull: #5721
2015-02-23 19:34:24 +01:00
UdjinM6
74551e9f31
HasCollateralInputs should check only for at least 1 collateral (not 2) - fix endless loop
2015-02-23 20:42:13 +03:00
snogcel
a0624aa427
CSS WIP v5
2015-02-22 11:22:38 -07:00
snogcel
99fecc3ce3
CSS WIP v4
2015-02-21 10:18:42 -07:00
fsb4000
7f502be259
fix crash: createmultisig and addmultisigaddress
...
Rebased-From: e5d9d77df2
Github-Pull: #5706
2015-02-20 09:53:44 +01:00
snogcel
91034fdb4f
CSS WIP v3
2015-02-20 01:02:38 -07:00
snogcel
d31aef41ea
Merge remote-tracking branch 'upstream/v0.11.2.x' into v0.11.2.x
2015-02-19 21:40:36 -07:00
Alex Morcos
9cd1dd9f6b
Fix priority calculation in CreateTransaction
...
Make this projection of priority in 1 block match the calculation in the low priority reject code.
Rebased-From: 2d9b0b7f03
Github-Pull: #5675
Conflicts:
src/wallet.cpp
2015-02-19 19:20:05 -08:00
evan82
3bb9ef96f4
Revert "Revert "Rebrand to darkcoin""
2015-02-19 11:58:38 -07:00
evan82
516f590c65
Revert "Rebrand to darkcoin"
2015-02-19 11:28:40 -07:00
Evan Duffield
8e1eaf983d
Enable darksend balance only when LiteMode is disabled
2015-02-19 11:22:00 -07:00
Evan Duffield
b5f6f0e7a7
minimum collateral amount
...
In the case where collateral is made as COLLATERAL*5, then
used 4 times, it will result in an input exactly COLLATERAL sized.
When used as a collateral transaction this will result in 1 input of
COLLATERAL and zero outputs (due to collateral being paid solely in fees).
zero output transactions aren't supported, so it'll result in DS failure.
2015-02-18 12:17:45 -07:00
evan82
de3c18cde8
Merge pull request #189 from UdjinM6/v0.11.2.x_clear_out_ds_fee
...
clear out DS fee / collateral clean up
2015-02-18 12:14:05 -07:00
evan82
52f7828785
Merge pull request #188 from UdjinM6/v0.11.2.x_typo
...
(v0.11.2.x) typo: succesful->successful
2015-02-18 12:10:55 -07:00
evan82
5c38c69f0c
Merge pull request #187 from vertoe/devel-0.9-strings
...
Rebrand to darkcoin
2015-02-18 12:10:45 -07:00
21E14
74f29c2737
Check pindexBestForkBase for null
...
Rebased-From: 730b1ed1a0
Github-Pull: #5154
2015-02-18 18:31:41 +01:00
UdjinM6
55faae269c
clear out DS fee
2015-02-18 15:31:40 +03:00
snogcel
3e86ce27ae
CSS WIP v2
2015-02-17 22:42:30 -07:00
snogcel
d168e605bc
Merge branch 'v0.11.2.x' of http://www.github.com/crowning2/darkcoin into v0.11.2.x
2015-02-17 20:23:24 -07:00
snogcel
a78c5e9680
WIP drkblue.css
2015-02-17 20:22:32 -07:00
crowning2
ea0841ae59
Padding for underscores in button added
2015-02-17 21:49:02 +01:00
crowning2
33e3cb08dd
CSS updated again
2015-02-17 21:43:25 +01:00
crowning2
3bd87fecaf
Recolored "Recent transactions" listbox
2015-02-17 21:12:27 +01:00
crowning2
8a4383ca39
Unused toolbar icon removed
2015-02-17 20:38:37 +01:00
crowning2
79aa755396
Daily merge upstream
2015-02-17 19:59:54 +01:00
Evan Duffield
ecd37e134e
Change darksend fee to 0.01DRK and charge in 1 in 10 sessions
2015-02-17 07:04:42 -07:00
UdjinM6
f87ccb1588
typo: succesful->successful
2015-02-17 13:27:47 +03:00
vertoe
a104f2383f
Fix windows copyright strings.
2015-02-17 10:53:03 +01:00
snogcel
ac3030cc65
CSS debug override
2015-02-16 20:12:06 -07:00
vertoe
277ed42040
Remove obsolete bitcoin resource files for windows.
2015-02-16 23:22:56 +01:00
vertoe
a179777a0a
Rename darkcoin config header.
2015-02-16 23:19:42 +01:00
vertoe
97600bbfba
Rename darkcoin resource files for windows.
2015-02-16 23:05:58 +01:00
vertoe
6d60156dce
Fix darkcoin resource file.
2015-02-16 22:54:26 +01:00
vertoe
b1170309a4
Rename darkcoin resource file.
2015-02-16 22:43:16 +01:00
vertoe
9b730c7826
Pull translations from transifex.
2015-02-16 22:36:58 +01:00
vertoe
dc149f0e78
Update source translation file.
2015-02-16 22:30:17 +01:00
vertoe
91adbde525
Rename darkcoinstrings file.
2015-02-16 22:28:38 +01:00
crowning2
b7db590168
Initial commit
2015-02-16 22:12:13 +01:00
crowning2
52d58c26c9
Initial commit
2015-02-16 22:01:13 +01:00
crowning2
f66c347cb9
Test
2015-02-16 21:59:11 +01:00
crowning2
4eedb11cf6
Initial commit
2015-02-16 21:52:37 +01:00
evan82
5d94fc5761
Merge pull request #179 from UdjinM6/v0.11.2.x_fix_keypool_progress
...
(v0.11.2.x) fix %% calculation on keypool generation
2015-02-16 12:54:04 -07:00
evan82
0e2a1d68b3
Merge pull request #181 from crowning-/v0.11.2.x
...
Edit darkcoin.conf from within the wallet
2015-02-16 12:53:20 -07:00
evan82
70596bf868
Merge pull request #182 from vertoe/devel-0.9
...
Weekly translations update.
2015-02-16 12:51:35 -07:00
evan82
b861e7ac4c
Merge pull request #183 from UdjinM6/v0.11.2.x_activemn_msgs
...
(v0.11.2.x) fix log output / more notCapableReason-s
2015-02-16 12:51:04 -07:00
evan82
e3df2faa74
Merge pull request #184 from UdjinM6/v0.11.2.x_fix_qt_multiple_recipients
...
(v0.11.2.x) qt bug multiple recipients are wrongly send as IX
2015-02-16 12:49:09 -07:00
UdjinM6
428d5976c7
Fix payee selectoin on CMasternodePayments::ProcessBlock
...
1) find exact payment list
2) find active MNs not payment list
3) if none found - pay to the first active MN from payment list counting from its back
2015-02-16 22:37:24 +03:00
vertoe
08d4a91364
Pull translations from transifex.
2015-02-16 09:55:08 +01:00
UdjinM6
2315b9ab28
fix bug where txes with multiple recipients were send from qt as IX while checkbox was not set
2015-02-16 02:42:08 +03:00
UdjinM6
58bcb321d9
fix log output / more notCapableReason-s
2015-02-16 02:01:06 +03:00
crowning-
e7ee887836
Edit configuration file from within wallet (formating + text change)
2015-02-15 16:26:57 +01:00
vertoe
2b5157c6ed
Pull translations from transifex.
2015-02-15 16:06:14 +01:00
vertoe
dd5a7163df
Pull translations from transifex.
2015-02-15 14:35:52 +01:00
vertoe
1a3586700e
Update untranslated strings.
2015-02-15 14:34:56 +01:00
crowning-
0cc5e478bf
Edit configuration file from within wallet
2015-02-15 14:33:31 +01:00
crowning-
8e312833ea
Edit configuration file from within wallet
2015-02-15 14:33:01 +01:00
crowning-
e4a290dc04
Update guiutil.h
2015-02-15 14:32:19 +01:00
crowning-
dc3f49bad7
Edit configuration file from within wallet
2015-02-15 14:31:51 +01:00
crowning-
1264546def
Edit configuration file from within wallet
2015-02-15 14:31:11 +01:00
crowning-
2d703f8010
Edit configuration file from within wallet
2015-02-15 14:30:22 +01:00
UdjinM6
287b357e32
fix %% calculation on keypool generation
2015-02-15 02:23:16 +03:00
evan82
3d004ab819
Merge pull request #178 from vertoe/devel-0.9-upstream
...
Implement BIP66
2015-02-14 08:14:03 -07:00
vertoe
e2953f8442
merge upstream 0.9
2015-02-14 08:59:11 +01:00
vertoe
2a1d86ff60
Pull translations from transifex.
2015-02-14 08:57:47 +01:00
vertoe
fb6a288fbc
merge downstream 0.11.1
2015-02-14 08:50:55 +01:00
vertoe
692b2e05f7
merge upstream 0.9
2015-02-14 08:48:10 +01:00
Evan Duffield
bdbdbf993f
fixed log message
2015-02-13 12:53:45 -07:00
Evan Duffield
70c4e0bdee
remove safemode checks for masternode payments & IX block enforce
2015-02-13 12:22:58 -07:00
Evan Duffield
b7b2549e56
blockheight should default to current height
2015-02-13 07:55:08 -07:00
Evan Duffield
65aa7db8a2
fixed sync message
2015-02-13 07:43:44 -07:00
Gregory Maxwell
6b4163b972
Sanitize command strings before logging them.
...
Normally bitcoin core does not display any network originated strings without
sanitizing or hex encoding. This wasn't done for strcommand in many places.
This could be used to play havoc with a terminal displaying the logs,
especially with printtoconsole in use.
Thanks to Evil-Knievel for reporting this issue.
Conflicts:
src/main.cpp
src/net.cpp
src/rpcserver.cpp
Rebased-From: 28d4cff0ed
Github-Pull: #5770
2015-02-13 13:32:39 +01:00
vertoe
57e59353ff
Update source translation file.
2015-02-13 09:29:18 +01:00
vertoe
4bed0a31b0
Pull translations from transifex.
2015-02-13 09:27:53 +01:00
vertoe
824cf61c8d
merge downstream 0.11.2
2015-02-13 09:26:14 +01:00
vertoe
9dc8c1cf07
merge downstream 0.11.1
2015-02-13 09:25:59 +01:00
evan82
a9ff5617e9
Merge pull request #177 from UdjinM6/v0.11.1.x_fix_gui_performance_issues
...
V0.11.2.x Performance and UI Fixes Pack
2015-02-12 16:50:17 -07:00
Evan Duffield
5907263729
sign payee for masternode payments
2015-02-12 12:55:14 -07:00
vertoe
d4070bc092
Pull translations >60% from transifex.
2015-02-12 12:01:14 -07:00
vertoe
9dc7008d81
Pull translations from transifex.
2015-02-12 12:01:14 -07:00
vertoe
920ecea2a1
only include translations >80% (now really\!)
2015-02-12 12:01:14 -07:00
vertoe
29722b89ee
Pull translations from transifex.
2015-02-12 12:01:14 -07:00
vertoe
5556a22f7a
only include translations >90%
2015-02-12 12:01:14 -07:00
vertoe
1fb19ac889
Revert "Fix coinbase maturity"
...
This reverts commit eafb791d8c
.
2015-02-12 12:01:13 -07:00
vertoe
f6986b53f0
Pull translations from transifex.
2015-02-12 12:01:13 -07:00
vertoe
e6c36ddd92
Fix coinbase maturity
2015-02-12 12:01:13 -07:00
vertoe
2f160ef0d2
only include translations >75%
2015-02-12 12:01:13 -07:00
vertoe
34f49aa95f
Pull translations from transifex.
2015-02-12 12:01:13 -07:00
UdjinM6
cc9eef01a2
fix time to switch "out of sync" message on/of to make UI more consistent (as we are 4x times faser than bitcoin)
2015-02-12 17:41:13 +03:00
UdjinM6
68cbba1621
allow getAnonymizedBalance calculation on sync again
2015-02-12 17:41:13 +03:00
UdjinM6
9823b9ebad
Solve performance problems by caching and fix probable security issue
...
- add number of rounds to outputs
- cache rounds calculation results of GetInputDarksendRounds
- select shortest rounds chain instead of the first found
2015-02-12 17:41:02 +03:00
UdjinM6
5011bc2e2a
fix twice denominatedBalance calculations
2015-02-12 16:54:24 +03:00
UdjinM6
843dc81178
add "out of sync" message to DS section too
2015-02-12 16:32:34 +03:00
UdjinM6
90b2a44045
wallet - fix locks / cleanup a bit
2015-02-12 16:26:32 +03:00
vertoe
e683afcb4b
Pull translations from transifex.
2015-02-12 13:29:04 +01:00
vertoe
d3d440780f
Add bulgarian and norwegian translations.
2015-02-12 11:16:00 +01:00
vertoe
f3ff766da4
Update transifex source file.
2015-02-12 11:07:52 +01:00
vertoe
6fe1b77b76
Fix some strings in the UI.
2015-02-12 11:07:02 +01:00
evan82
d1d31ad4c3
Merge pull request #175 from vertoe/devel-0.9
...
Translations cleanup.
2015-02-11 22:14:42 -07:00
evan82
0724070661
Merge pull request #172 from crowning-/patch-3
...
Minor UI changes for Overview Page
2015-02-11 22:13:52 -07:00
evan82
1165740d5e
Merge pull request #171 from crowning-/patch-2
...
Added link to Transifex translation site for missing languages
2015-02-11 22:13:39 -07:00
Evan Duffield
662d01733d
added spork for resolving forks
2015-02-11 21:21:28 -07:00
Evan Duffield
c8c4cc48f2
fix propagation of spork messages
2015-02-11 13:40:54 -07:00
Evan Duffield
23ea75f737
Add maximum out value for IX via spork
2015-02-11 08:08:55 -07:00
vertoe
15ec4d5cff
Pull translations >60% from transifex.
2015-02-11 08:31:03 +01:00
UdjinM6
6dc44bdfa5
IsInitialBlockDownload time range down to 6 hours = ~144 blocks -> 2 x forks detection time (fixing comments there too)
2015-02-11 03:08:28 +03:00
UdjinM6
a948de8009
do not calculate anonymized balance during initial download or while in lite mode
2015-02-11 02:50:35 +03:00
crowning-
b279d638ab
Minor UI changes for Overview Page
...
1: Darksend layout widened by 2 characters (4 digit amounts + 2 digit rounds didn't fit in some languages)
2: "Last Darksend Status" messages use now the increased width from 1:
2015-02-10 22:09:36 +01:00
crowning-
4fb746a003
Update optionsdialog.ui
2015-02-10 21:53:14 +01:00
crowning-
40332c7d40
Added link to Transifex translation site for missing languages
2015-02-10 20:55:26 +01:00
UdjinM6
4e94fe1d52
cherry-pick:
...
[Qt, OSX] QProgressBar CPU-Issue workaround
6093aa1bb0
0ceab00d16
[Qt, OSX] fix Qt4.8 compatibility with QProgressBar issue
c5a2282855
2015-02-10 16:45:37 +03:00
UdjinM6
f9e80690b9
resolve conflicts / clean yet unused functionality
2015-02-10 16:35:08 +03:00
UdjinM6
24e5470c0d
cherry-pick 023e63df78
2015-02-10 16:24:05 +03:00
vertoe
3ad14efefc
merge downstream 0.11.1
2015-02-10 13:08:49 +01:00
vertoe
d1630bddd5
Pull translations from transifex.
2015-02-10 13:08:39 +01:00
Evan Duffield
ba12e5905e
fixed log message and added checkpoint
2015-02-10 03:45:21 -07:00
vertoe
f73caedab1
only include translations >80% (now really\!)
2015-02-10 10:15:31 +01:00
vertoe
96de137ea0
Pull translations from transifex.
2015-02-10 10:03:41 +01:00
vertoe
0d63fcd541
only include translations >90%
2015-02-10 09:41:06 +01:00
vertoe
4a07c0c994
Revert "Fix coinbase maturity"
...
This reverts commit eafb791d8c
.
2015-02-10 09:33:30 +01:00
vertoe
f45091fc77
Pull translations from transifex.
2015-02-10 09:07:45 +01:00
vertoe
eafb791d8c
Fix coinbase maturity
2015-02-10 08:57:27 +01:00
vertoe
5b13738c31
only include translations >75%
2015-02-10 08:53:57 +01:00
vertoe
fc059983e2
merge downstream 0.11.1
2015-02-10 08:42:06 +01:00
Evan Duffield
e6ec9665d5
min proto / version
2015-02-09 19:43:39 -07:00
Evan Duffield
0148b8b939
added unknown inv messages
2015-02-09 15:39:50 -07:00
Evan Duffield
db4d5443ac
remove debug message
2015-02-09 15:38:16 -07:00
Evan Duffield
c7206802e4
fixed attribution
2015-02-09 14:06:11 -07:00
Evan Duffield
6ab868a3e7
added spork files
2015-02-09 13:54:51 -07:00
Evan Duffield
38df2bf093
version bump/ proto bump
2015-02-09 13:43:10 -07:00
Evan Duffield
886f45379a
fixed caching
2015-02-09 13:36:45 -07:00
Evan Duffield
a119b3008c
use inventory system for masternode winners
2015-02-09 13:23:42 -07:00
Evan Duffield
f510cc309b
use block hash caching
2015-02-09 13:21:12 -07:00
Evan Duffield
257078d2a4
Full Spork Implementation
...
Many sporks are supported at once, with efficient broadcasting
via inventory messages.
2015-02-09 12:49:00 -07:00
Evan Duffield
5dc643f9b0
Merge branch 'v0.11.1.x' of https://github.com/darkcoin/darkcoin into v0.11.1.x
2015-02-09 08:04:02 -07:00
Evan Duffield
f8f1435147
Fixed UI refreshed issues
2015-02-09 08:03:37 -07:00
vertoe
e4a2eb5842
Pull translations from transifex.
2015-02-09 12:05:14 +01:00
evan82
562a126d99
Merge pull request #169 from vertoe/devel-0.9
...
Weekly translations update
2015-02-08 22:40:12 -07:00
Evan Duffield
9f91d3cd9e
fixed possibility of IX getting a lack of fees
2015-02-08 22:38:22 -07:00
Evan Duffield
a4c8341b98
revert changes to calcScore
2015-02-08 21:57:50 -07:00
Evan Duffield
8d913937f4
change rules for dealing with forks
2015-02-08 17:39:18 -07:00
Evan Duffield
c7a3729637
make calcScore return the same results on all platforms
2015-02-08 17:16:38 -07:00
vertoe
7161aa9baa
Add languages.
2015-02-08 23:19:17 +01:00
vertoe
cbca74812e
Pull translations from transifex.
2015-02-08 23:17:13 +01:00
vertoe
3cdb0d474a
Update translation source.
2015-02-08 22:37:44 +01:00
vertoe
a121f12612
Fix typo in instantx string.
2015-02-08 22:36:08 +01:00
vertoe
825a430c7a
merge downstream 0.11.1
2015-02-08 22:26:11 +01:00
Evan Duffield
dd48c4a352
enable IX when fork detected
2015-02-08 11:59:09 -07:00
Evan Duffield
5e34edef4c
set checkpoint
2015-02-08 09:22:12 -07:00
Evan Duffield
f9d6ba25fa
Merge branch 'v0.11.1.x' of https://github.com/darkcoin/darkcoin into v0.11.1.x
2015-02-08 08:46:48 -07:00
Evan Duffield
1b6be50f5d
restarting testnet
2015-02-08 08:46:30 -07:00
evan82
a7d5594d8c
Merge pull request #168 from UdjinM6/v0.11.1.x_tx_types_cleanup
...
V0.11.1.x tx types cleanup
2015-02-08 08:38:51 -07:00
Evan Duffield
86dd29058f
disable rejecting blocks / version bump
2015-02-08 08:05:53 -07:00
UdjinM6
c1d946bc0a
use wallet db ds flag in rpc
2015-02-08 17:10:44 +03:00
UdjinM6
3a64318bd2
update tx types in UI / fix tx decomposition / use wallet db ds flag in UI
2015-02-08 17:10:01 +03:00
UdjinM6
c8c14effff
use wallet db to save ds flag / debug
2015-02-08 17:03:39 +03:00
UdjinM6
562b844819
use AvailableCoinsType instead of string in walletmodel
2015-02-08 17:00:23 +03:00
Evan Duffield
ddc31b0ff7
fixed issues with ix signature propagation
2015-02-07 20:54:36 -07:00
Evan Duffield
0d8ae6fc16
version/proto/min version bump
2015-02-07 20:23:43 -07:00
Evan Duffield
e4b5b6c5f6
Merge branch 'v0.11.1.x' of https://github.com/darkcoin/darkcoin into v0.11.1.x
2015-02-07 20:04:43 -07:00
Evan Duffield
2f56ecb10a
protocol version
2015-02-07 20:04:08 -07:00
evan82
01356fca76
Merge pull request #167 from UdjinM6/v0.11.1.x_fix_SelectCoins_best_sub_loops
...
optimize SelectCoinsMinConf best subset loops
2015-02-07 13:12:30 -07:00
Evan Duffield
e3dcc84415
added debuging for fork detection
2015-02-07 13:05:10 -07:00
evan82
77452b6b86
Merge pull request #166 from UdjinM6/v0.11.1.x_fix_MakeCollateralAmounts
...
fix: MakeCollateralAmounts stuck sometimes
2015-02-07 13:02:43 -07:00
evan82
c187e8288c
Merge pull request #164 from UdjinM6/v0.11.1.x_optimize_notifytxchanges_call
...
call NotifyTransactionChanged for the same prevout tx hash only once per tx commit
2015-02-07 13:01:34 -07:00
evan82
37680d0fe1
Merge pull request #163 from UdjinM6/v0.11.1.x_fix_sendcoinsdialog_mess_on_mac
...
fix checkbox mess on mac / get rid of line in sendcoinsdialog
2015-02-07 13:00:06 -07:00
evan82
78c0258306
Merge pull request #162 from UdjinM6/v0.11.1.x_fix_balances
...
v0.11.1.x fix balances calculations when there are conflicted coins / slight optimizations
2015-02-07 12:59:45 -07:00
Evan Duffield
0a077975c7
fixed calcscore
2015-02-07 12:58:43 -07:00
Evan Duffield
a49cc8f5d5
debug
2015-02-07 12:35:33 -07:00
Evan Duffield
4ec5370317
added aux2 data for calcscore
2015-02-07 12:07:08 -07:00
Evan Duffield
ef2b9ef223
debugging
2015-02-07 11:31:15 -07:00
Evan Duffield
ee37d4622e
proto bump
2015-02-07 10:47:44 -07:00
Evan Duffield
3a263ed1bf
fixed platform issues with calcscore / better re-converge after fork
2015-02-07 10:30:16 -07:00
vertoe
a2ae4c900e
merge downstream 0.11.1
2015-02-07 16:22:17 +01:00
UdjinM6
ab28751bbe
fix
2015-02-07 08:19:02 +03:00
UdjinM6
a30b439259
optimize SelectCoins best subset debug output
2015-02-07 07:39:25 +03:00
UdjinM6
fdbeedfa96
fix MakeCollateralAmounts - cleaned more unneeded calculations
2015-02-07 05:26:59 +03:00
UdjinM6
fd7992dc61
fix MakeCollateralAmounts stuck sometimes and wouldn't let denominating further
2015-02-07 05:18:37 +03:00
Evan Duffield
3a72da77ac
clean up tx lock votes on expiration
2015-02-06 13:19:22 -07:00
Evan Duffield
3b35672bb8
version/proto bump
2015-02-06 12:53:31 -07:00
Evan Duffield
c56a54d211
enforce mn port on mainnet only
2015-02-06 12:41:39 -07:00
Evan Duffield
012f0e5660
Implemented inventory system for IX messages
2015-02-06 12:07:22 -07:00
Pieter Wuille
3230b329ea
Raise version of created blocks, and enforce DERSIG in mempool
2015-02-06 10:42:01 -08:00
Evan Duffield
dfb3da5ec3
version/protocol bump/min protocol
2015-02-06 09:03:50 -07:00
Evan Duffield
b65d718cf5
debugging
2015-02-06 08:54:39 -07:00
vertoe
165dbbba6d
Add icelandic.
2015-02-06 15:07:50 +01:00
vertoe
e9296dcf0b
Pull translations from transifex.
2015-02-06 15:04:57 +01:00
vertoe
0f177393b8
Update locale strings.
2015-02-06 15:03:29 +01:00
vertoe
06c7aa1e6e
merge downstream 0.11.1
2015-02-06 15:00:12 +01:00
Pieter Wuille
989d49921b
Backport of some of BIP66's tests
2015-02-05 21:26:15 -08:00
Pieter Wuille
ab03660824
Implement BIP 66 validation rules and switchover logic
2015-02-05 20:56:10 -08:00
Evan Duffield
76e36bfbea
only vote when in the top X nodes
2015-02-05 21:41:17 -07:00
UdjinM6
dc19605ec7
call NotifyTransactionChanged for the same prevout tx hash only once per tx commit
2015-02-06 07:25:46 +03:00
UdjinM6
7a43249d56
fix checkbox mess on mac / get rid of line in sendcoinsdialog
2015-02-06 07:09:40 +03:00
UdjinM6
16f725961a
- use only trusted coins to calculate anon balance/avg rounds
...
- use only non-conflicted coins to calculate denom balance
- move GetDepthInMainChain and some conditions out of loops
2015-02-06 04:53:28 +03:00
Evan Duffield
6149e55710
extend txlock expiration
2015-02-05 17:49:55 -07:00
Evan Duffield
22e1e1c1c8
Merge branch 'v0.11.1.x' of https://github.com/darkcoinproject/darkcoin into v0.11.1.x
2015-02-05 17:33:08 -07:00
Evan Duffield
b27a6a3cac
fixed score calculation
2015-02-05 17:32:03 -07:00
Evan Duffield
64e8cbc661
version/protocol bump
2015-02-05 17:16:43 -07:00
vertoe
f21f255252
Pull translations from transifex.
2015-02-06 00:57:29 +01:00
vertoe
8fc3f84ad8
merge downstream 0.11.1
2015-02-06 00:39:58 +01:00
Evan Duffield
a950049541
New improved masternode calculation
2015-02-05 16:26:32 -07:00
Evan Duffield
412f54fe8a
added improvements to hashing algorithm / block hash caching
2015-02-05 15:56:59 -07:00
Evan Duffield
f51ee91a2c
track requests per IX
2015-02-05 11:29:13 -07:00
Evan Duffield
ae0b956d82
protocol bump
2015-02-05 11:11:50 -07:00
Evan Duffield
598a9586b5
version bump
2015-02-05 10:57:25 -07:00
Evan Duffield
d5376687d4
improvements for resolving forks
2015-02-05 10:56:11 -07:00
Evan Duffield
97d73a72b5
cancel out conflicting locks
2015-02-05 09:48:57 -07:00
Evan Duffield
c3b92a7103
Merge branch 'v0.11.1.x' of https://github.com/darkcoin/darkcoin into v0.11.1.x
2015-02-05 09:01:47 -07:00
Evan Duffield
1e8b4cdbf0
check for null reference
2015-02-05 09:01:14 -07:00
evan82
4f267d5a8d
Merge pull request #161 from UdjinM6/v0.11.1.x_fix_overviewpage
...
V0.11.1.x fix overviewpage
2015-02-05 08:53:14 -07:00
Evan Duffield
c8fc2633ee
Various IX improvements
...
- Fixed a segfault with listtransactions and IX
- Improved the feed back of IX while processing
2015-02-05 08:52:02 -07:00
vertoe
fd2fd3afb1
Pull translations from transifex.
2015-02-05 16:26:02 +01:00
vertoe
78d47c04fe
merge downstream 0.11.1
2015-02-05 16:13:05 +01:00
vertoe
7f86afa777
Add serbian (latin) language.
2015-02-05 15:29:51 +01:00
vertoe
76b6a321ce
Push transifex source typo.
2015-02-05 15:26:41 +01:00
UdjinM6
7d6e46693c
ds progress bar set to 0 at start
2015-02-05 17:26:36 +03:00
UdjinM6
aec4020af0
fix division by 0 in ds progress calculation
2015-02-05 17:20:19 +03:00
Evan Duffield
77bade91be
version bump
2015-02-04 21:05:36 -07:00
Evan Duffield
4064c2f5ef
Improved IX security / quicker tx scanning
2015-02-04 14:59:19 -07:00
Evan Duffield
ea06ed5bae
fix segfault with disablewallet
2015-02-04 14:19:18 -07:00
evan82
157800109c
Merge pull request #160 from UdjinM6/v0.11.1.x_fix
...
fix log message
2015-02-04 14:18:59 -07:00
evan82
0fe4d6a17c
Merge pull request #159 from UdjinM6/v0.11.1.x_fix_ds_anon
...
use only completely anonymized denoms when sending ds tx
2015-02-04 14:18:28 -07:00
Evan Duffield
6ae98a8790
use authoritive block height for IX
2015-02-04 14:09:50 -07:00
Evan Duffield
2a0d3dfb9d
Use hash after transaction was mined
...
- Prevents an attacker from gaming which masternodes they'll use
2015-02-04 13:25:12 -07:00
Evan Duffield
712eb7e9d9
improved conflict resolution
2015-02-04 13:20:13 -07:00
vertoe
7e8d8c9681
Fix typo in darksend.
2015-02-04 20:55:14 +01:00
UdjinM6
5e73fdb9b1
fix log message
2015-02-04 21:38:40 +03:00
UdjinM6
1583469c49
use only completely anonymized denoms when sending ds tx
2015-02-04 20:37:30 +03:00
Evan Duffield
d13de27d57
implemented txlock conflict resolution
2015-02-04 09:39:45 -07:00
Evan Duffield
6faa140c49
reference node fix
2015-02-04 08:57:09 -07:00
Evan Duffield
65612697ca
Added better error messages
2015-02-04 08:37:49 -07:00
Evan Duffield
741f85c358
Merge branch 'v0.11.1.x' of https://github.com/darkcoin/darkcoin into v0.11.1.x
2015-02-04 08:24:58 -07:00
Evan Duffield
186699abff
Masternode payment improvements / release notes
2015-02-04 08:24:34 -07:00
vertoe
cae07699f2
Pull translations from transifex.
2015-02-04 15:58:34 +01:00
vertoe
6ca5b2cd82
Minor fix for bavarian language.
2015-02-04 15:58:07 +01:00
vertoe
969c768922
merge downstream 0.11.1
2015-02-04 15:45:16 +01:00
vertoe
d9aece309a
Pull translations from transifex.
2015-02-04 15:44:59 +01:00
Evan Duffield
5cae323d29
Merge branch 'v0.11.1.x' of https://github.com/darkcoin/darkcoin into v0.11.1.x
2015-02-04 07:44:50 -07:00
vertoe
ea48a14424
Merge downstream 0.11.1.
2015-02-04 15:44:38 +01:00
Evan Duffield
efe22ea1ae
fixed segfault
2015-02-04 07:44:23 -07:00
vertoe
86ca90d9b3
Translate darksend messages.
2015-02-04 14:24:56 +01:00
Evan Duffield
454154c18f
fixed min IX fee
2015-02-04 05:00:17 -07:00
vertoe
ab50ebb7c0
Pull translations from transifex.
2015-02-04 12:49:53 +01:00
vertoe
86db4eb853
Fix project file and update translation source file.
2015-02-04 12:48:39 +01:00
vertoe
23963ba391
merge downstream 0.11.1
2015-02-04 12:06:34 +01:00
vertoe
2a6060467e
Pull translations from transifex.
2015-02-04 12:06:21 +01:00
vertoe
04fdf9d124
Fix untranslated strings and typos.
2015-02-04 12:00:23 +01:00
Evan Duffield
b1c772a190
minimum fees for IX
2015-02-04 03:44:41 -07:00
UdjinM6
877405c8fb
use more common syntax to make it clear that actually 6 confirmations are required for IX to work / +comments
2015-02-04 13:20:33 +03:00
vertoe
8de2f06884
Pull translations from transifex.
2015-02-04 10:08:59 +01:00
vertoe
498ed85dc5
merge downstream 0.11.1
2015-02-04 10:08:03 +01:00
Evan Duffield
6bd911bfca
version bump
2015-02-03 18:36:17 -07:00
Evan Duffield
d4896934e1
add transaction scanning for new transactions
2015-02-03 18:35:29 -07:00
Evan Duffield
e3ef585263
minor changes
2015-02-03 18:19:54 -07:00
Evan Duffield
d912f3466a
version bump
2015-02-03 16:00:48 -07:00
Evan Duffield
f4b26d6f10
Enforcing IX locks
...
- Scan IX locks on new blocks to make sure no conflicting txes are present
- Upon completion of a IX lock, check for conflicts and remove blocks if needed
2015-02-03 15:40:00 -07:00
vertoe
bb746b50bb
merge downstream 0.11.1
2015-02-03 23:23:52 +01:00
Evan Duffield
13175a3c52
Fixed minconfirmations for IX
2015-02-03 15:20:13 -07:00
evan82
62bdb540f3
Merge pull request #155 from UdjinM6/v0.11.1.x_fix_conflicted
...
clear vValue in SelectCoinsMinConf - should fix an issue with conflicted txes
2015-02-03 14:51:12 -07:00
evan82
1f31768d68
Merge pull request #154 from crowning-/patch-3
...
"Debug window" -> "Tools window" renaming
2015-02-03 14:51:03 -07:00
evan82
f6f0ad4ee2
Merge pull request #153 from crowning-/patch-2
...
Fixed cut-off strings in overview page
2015-02-03 14:50:47 -07:00
evan82
d0b419cc59
Merge pull request #152 from crowning-/patch-1
...
"Last Darksend message" text added in overview page
2015-02-03 14:50:33 -07:00
evan82
2b8ceaf0fb
Merge pull request #151 from UdjinM6/v0.11.1.x_fix_ds_nonIXdepth
...
V0.11.1.x fix ds non i xdepth
2015-02-03 14:50:19 -07:00
UdjinM6
1d3e296613
clear vValue in SelectCoinsMinConf - should fix issue with conflicted txes
2015-02-04 00:00:54 +03:00
crowning-
abd16172c0
It's not a debug-only window anymore
...
Someone (vertoe :-) ) has to add/replace this string in the locale files.
2015-02-03 21:57:47 +01:00
crowning-
259cf6793e
Fixed cut-off strings in overview page
...
Even the long German string vertoe is using fit now
2015-02-03 21:53:55 +01:00
crowning-
7c0920e396
Gives the end-user a better understanding on the information displayed there.
2015-02-03 21:48:11 +01:00
UdjinM6
0ca6b1c91c
do not use IX coins until we have at least 1 blockchain confirmation
2015-02-03 23:25:00 +03:00
vertoe
4cdb18fa4f
Merge downstream 0.11.1
2015-02-03 19:35:56 +01:00
vertoe
e229ab5b53
Pull translations from transifex.
2015-02-03 19:35:22 +01:00
Evan Duffield
cf1ec7153b
version bump
2015-02-03 10:19:53 -07:00
Evan Duffield
feb9a1e922
Improved masternode payments
2015-02-03 10:17:30 -07:00
UdjinM6
a59e3ae3d3
every ds related function should ignore ix depth and use blockchain depth instead
2015-02-03 12:55:25 +03:00
Gregory Maxwell
1eb14af28f
Increase block download timeout base from 10 to 20 minutes.
...
This harmonizes the block fetch timeout with the existing ping timeout
and eliminates a guaranteed eventual failure from congestion collapse
for a network operating right at its limit.
It's unlikely that we wouldn't suffer other failures if we were really
anywhere near the network's limit, and a complete avoidance of congestion
collapse risk requires (I think) an exponential back-off. So this isn't
a major concern, but I think it's also useful for reducing the complexity
of understanding out timeouts.
Github-Pull: #5647
Rebased-From: 3ff735c99a
2015-02-03 10:37:30 +01:00
Wladimir J. van der Laan
336f9fbd30
Merge pull request #5714
...
3916a81
Increase coverage of DERSIG edge cases (Pieter Wuille)
6da2028
Add RPC test for DERSIG BIP switchover logic (Pieter Wuille)
773c30d
BIP66 changeover logic (Pieter Wuille)
18695f0
Example unit tests from BIP66 (Pieter Wuille)
abfbeaf
Change IsDERSignature to BIP66 implementation (Pieter Wuille)
2015-02-03 10:33:58 +01:00
Alex Morcos
b6347bf813
Fix priority calculation in CreateTransaction
...
Make this projection of priority in 1 block match the calculation in the low priority reject code.
Rebased-From: 2d9b0b7f03
Github-Pull: #5675
2015-02-03 09:04:20 +01:00
Pieter Wuille
2448d34298
Avoid storing a reference passed to SignatureChecker constructors
...
Rebased-From: 9fddceda44
Github-Pull: #5719
2015-02-03 08:52:13 +01:00
Pieter Wuille
1bbad80bf4
Use separate SignatureChecker for CMutableTransaction
...
Conflicts:
src/main.cpp
src/script/bitcoinconsensus.cpp
Rebased-From: 858809a33e
Github-Pull: #5719
2015-02-03 08:48:04 +01:00
Evan Duffield
ffec62e8ba
change req maturity to 100 from 120
2015-02-02 15:54:16 -07:00
Evan Duffield
e2898a2f86
small fix for assert failure
2015-02-02 13:11:49 -07:00
Evan Duffield
6b0c7f3c4f
add a couple sanity checks to GetLastValidBlockHash
2015-02-02 12:27:07 -07:00
Evan Duffield
1f828f45ec
fixed regtest+ds issues
2015-02-02 11:10:17 -07:00
Evan Duffield
2992907d91
Better DOS protection, fixed min confirmations
2015-02-02 10:33:52 -07:00
Evan Duffield
6c4a6f6583
signal transaction update
2015-02-02 08:04:09 -07:00
Evan Duffield
d07014ce1e
add simple dos protection / IX vote class improvements
2015-02-02 07:38:50 -07:00
Evan Duffield
d512124bad
Much lower bandwidth requirements for IX
2015-02-02 05:24:04 -07:00
Evan Duffield
5b0d0146b0
only update when tx is found
2015-02-02 05:06:43 -07:00
Evan Duffield
b59ba777fc
only relay signatures to subscribing peers
2015-02-02 05:01:06 -07:00
Evan Duffield
13246598b8
Added dstx support for free transactions
2015-02-02 04:42:41 -07:00
vertoe
aa39f11fa2
Pull translations from transifex.
2015-02-02 12:27:38 +01:00
Evan Duffield
7e38235e5a
Added masternode payee caching
2015-02-02 04:05:21 -07:00
Evan Duffield
837fe9b417
protocol bump / version bump
2015-02-01 15:49:24 -07:00
Pieter Wuille
3916a81a27
Increase coverage of DERSIG edge cases
2015-02-01 17:57:44 -04:00
Pieter Wuille
773c30d756
BIP66 changeover logic
2015-02-01 17:57:38 -04:00
Pieter Wuille
18695f08ef
Example unit tests from BIP66
2015-02-01 17:56:06 -04:00
Pieter Wuille
abfbeafe84
Change IsDERSignature to BIP66 implementation
2015-02-01 17:56:06 -04:00
evan82
ea967b53a2
Merge pull request #147 from vertoe/devel-0.9
...
Complete russian, spanish and german translation
2015-02-01 13:41:21 -07:00
Evan Duffield
2feb0fd2f8
fixed hashing for IX
2015-02-01 13:37:20 -07:00
Evan Duffield
6c8b23c0b2
return 0 for incomplete tx locks
2015-02-01 13:14:31 -07:00
Evan Duffield
c9585c7747
added set expiration for IX, cleaned up messages
2015-02-01 13:04:20 -07:00
Evan Duffield
e0c26e4c11
debugging for IX
2015-02-01 11:02:36 -07:00
Evan Duffield
a0d5f92f87
improvements to IsTransactionLocked
2015-02-01 10:47:56 -07:00
Evan Duffield
1377b71347
ignore IX confirmations when forming new tx
2015-02-01 10:21:43 -07:00
Evan Duffield
b1d701275a
only use inputs with 5 confirmations for IX
2015-02-01 09:30:58 -07:00
Evan Duffield
d3763f6f82
search inputs separately for IX
2015-02-01 09:16:31 -07:00
Evan Duffield
8164721b25
Merge branch 'v0.11.1.x' of https://github.com/darkcoinproject/darkcoin into v0.11.1.x
2015-02-01 09:07:04 -07:00
Evan Duffield
a3077626b5
various improvements to IX
2015-02-01 08:53:49 -07:00
vertoe
14e7982ed3
Finish german translation.
2015-02-01 13:19:52 +01:00
vertoe
8ce1b7c71d
Merge vietnamese translations.
2015-02-01 09:42:32 +01:00
vertoe
d6905f607a
Finish spanish translations.
2015-02-01 09:29:14 +01:00
vertoe
f5e740d57e
Pull translations from transifex.
2015-02-01 09:23:04 +01:00
vertoe
0a752de0f0
Pull translations from transifex.
2015-02-01 00:16:03 +01:00
vertoe
d167228cee
Pull translations from transifex.
2015-01-31 23:29:24 +01:00
vertoe
cddde832d6
Merge bitcoin translations.
2015-01-31 23:11:26 +01:00
vertoe
99204999e9
Pull translations from transifex.
2015-01-31 22:06:37 +01:00
vertoe
6a685db76c
Pull translations from transifex.
2015-01-31 21:15:38 +01:00
vertoe
69d93bbbd9
Pull translations from transifex.
2015-01-31 20:31:16 +01:00
vertoe
1333864674
Update bitcoinstrings.
2015-01-31 19:47:23 +01:00
vertoe
be3041e88c
Pull translations from transifex.
2015-01-31 19:17:24 +01:00
evan82
9f33c1e5f9
Merge pull request #144 from UdjinM6/fix_doauto_on_initial_download
...
prevent running DoAutomaticDenominating while IsInitialBlockDownload
2015-01-30 12:57:54 -07:00
evan82
53a499fc47
Merge pull request #143 from vertoe/devel-0.9
...
Start translating darkcoin core correctly
2015-01-30 07:48:25 -07:00
evan82
b4b88e1cc3
Merge pull request #141 from UdjinM6/fix_coincontrol_crash
...
fix coin control crash
2015-01-30 07:47:10 -07:00
evan82
2158023d4c
Merge pull request #139 from UdjinM6/fix_more_usage_of_IsDenominatedAmount
...
use IsDenominatedAmount instead of loops and GetInputDarksendRounds where applicable
2015-01-30 07:41:59 -07:00
evan82
366435253f
Merge pull request #138 from UdjinM6/fix_AvailableCoins
...
always get only confirmed coins by AvailableCoins for every DS relative action
2015-01-30 07:40:13 -07:00
Philip Kaufmann
6a02ef8bdb
[Qt] don't allow amount changes when AmountSpinBox is read-only
...
- before it was possible to use the steps to change e.g. amouns of
authenticated or unauthenticated payment requests (AmountSpinBox is
already set to read-only here) - this is now fixed
- also move the reimplemented stepEnabled() function to the
protected section of our class, where it belongs (see Qt doc)
Github-Pull: #5637
Rebased-From: 0fd9e2bf43
2015-01-30 15:12:05 +01:00
vertoe
83c0c532f6
Pull translations from transifex.
2015-01-30 15:03:21 +01:00
vertoe
6adc5031b3
Add darkcoin translations to makefiles
2015-01-30 14:27:28 +01:00
vertoe
42980cc44b
Add darkcoin translations
2015-01-30 14:25:14 +01:00
vertoe
a5ef471326
Fix translation makefiles and documentation.
2015-01-30 12:31:22 +01:00
vertoe
64438577e0
Prepare transifex integration.
2015-01-30 11:39:55 +01:00
UdjinM6
bf45840527
fix coin control crash https://github.com/bitcoin/bitcoin/pull/5700
2015-01-30 04:13:14 +03:00
UdjinM6
1ecbfd09d7
prevent running DoAutomaticDenominating while IsInitialBlockDownload
2015-01-30 01:19:41 +03:00
UdjinM6
52dabd1166
always get only confirmed coins by AvailableCoins
2015-01-30 01:15:04 +03:00
UdjinM6
84b0e6f587
use IsDenominatedAmount instead of loops and GetInputDarksendRounds where applicable
2015-01-29 13:36:18 +03:00
fsb4000
b61940b3a1
Change Coin Control first column label
...
Github-Pull: #5720
Rebased-From: 55eade9d46
2015-01-29 11:21:05 +01:00
evan82
3edcf4beda
Merge pull request #137 from UdjinM6/fix_ds_progress
...
fix updateDarksendProgress / add isDenominatedAmount and GetNormalizedAnonymizedBalance - v0.11.1.x
2015-01-28 11:59:51 -07:00
UdjinM6
6f7f19fdcc
fix updateDarksendProgress / add isDenominatedAmount and GetNormalizedAnonymizedBalance
2015-01-28 10:35:17 +03:00
Evan Duffield
5c7b132841
version bump / enable IX
2015-01-27 14:52:31 -07:00
Evan Duffield
7fafe5d3e1
revert changes to WalletModel::getAnonymizedBalance()
2015-01-27 11:01:25 -07:00
Evan Duffield
11ec24bc36
version bump
2015-01-27 11:00:02 -07:00
evan82
1598d8e7a6
Merge pull request #134 from UdjinM6/fix_creating_denominated
...
fixing pre-mix process of creation denominated amounts
2015-01-27 10:57:35 -07:00
Evan Duffield
c6eba54e65
Much faster block processing
2015-01-27 07:46:06 -07:00
Evan Duffield
de8a436363
fix overpaying for DSTX
2015-01-27 07:29:25 -07:00
UdjinM6
287ea11a25
make collateral inputs from all available inputs but not from mn-like
2015-01-27 07:39:27 +03:00
UdjinM6
a07d637a48
don't use collateral amounts on CreateDenominated / make collateral inputs from all available coins and not only from non-denominated / IsCollateralAmount function
2015-01-27 07:13:34 +03:00
Evan Duffield
61b3ce76eb
Merge branch 'master' of https://github.com/darkcoin/darkcoin
2015-01-26 15:56:02 -07:00
Evan Duffield
69ca88c491
Darksend rounds default/litemode changes
...
4 rounds should be more than enough
2015-01-26 15:54:12 -07:00
evan82
61b84c9dd7
Merge pull request #132 from UdjinM6/fix_crash_coinsview
...
Catch UTXO set read errors and shutdown
2015-01-26 15:46:13 -07:00
Evan Duffield
71e074336b
Update dseg limitations
...
vecMasternodes.size() == 0 is a nearly impossible condition due to the behavior
of dseep. Each time a node receives a ping where it's unaware of the masternode
it will ask for the dsee from it's peer.
- if(c % 5 == 0 && (RequestedMasterNodeList <= 2 || vecMasternodes.size()
+ if(c % 5 == 0 && RequestedMasterNodeList < 3){
2015-01-26 11:03:36 -07:00
Matt Corallo
c5044bc169
sleep-wait on genesis block during init with -reindex
...
Rebased-From: ff09e31a51
Github-Pull: #5243
2015-01-26 12:29:56 +01:00
Peter Todd
b24ff47c64
Make empty byte arrays pass CheckSignatureEncoding()
...
Makes it possible to compactly provide a delibrately invalid signature
for use with CHECK(MULTI)SIG. For instance with BIP19 if m != n invalid
signatures need to be provided in the scriptSig; prior to this change
those invalid signatures would need to be large DER-encoded signatures.
Note that we may want to further expand on this change in the future by
saying that only OP_0 is a "valid" invalid signature; BIP19 even with
this change is inherently malleable as the invalid signatures can be any
validly encoded DER signature.
Rebased-From: 2fa9a8ec86
Github-Pull: #5627
2015-01-26 12:10:29 +01:00
UdjinM6
144b24bee5
more fixes/cleanup/debug output to DS mixing
2015-01-26 00:18:26 +03:00
UdjinM6
9a4fac6bb6
fixing pre-mix process of creation denominated amounts
2015-01-25 02:57:55 +03:00
UdjinM6
aa544887d7
ported from 13cdce4336
2015-01-24 20:31:19 +03:00
Evan Duffield
385c532df8
Updated checkpoints
2015-01-24 07:51:34 -07:00
Evan Duffield
90ad641d39
Check pindexBestForkBase/phashBlock both for null
2015-01-23 13:44:25 -07:00
fsb4000
ed4206acb1
fix crash: CoinControl "space" bug
...
Just like baf80c26a2
Github-Pull: #5700
Rebased-From: 944c256741
2015-01-23 16:23:54 +01:00
Evan Duffield
3b140b22d7
version bump
2015-01-23 07:56:30 -07:00
Evan Duffield
935ab9e252
Merge branch 'master' of https://github.com/darkcoin/darkcoin
2015-01-23 07:48:52 -07:00
Evan Duffield
26ebf1d7cb
Fixed segfault causes by coins view
2015-01-23 07:48:39 -07:00
evan82
f3710ec4de
Merge pull request #130 from UdjinM6/fix_mn_payments_percent_schedule_comments
...
fix mn payment comment - blocknumbers / new dates according to stats from last 50k blocks
2015-01-23 06:59:00 -07:00
evan82
782bcc6850
Merge pull request #129 from UdjinM6/fix_cmdline_help
...
add missing DS/MN/IX options descriptions in help output
2015-01-23 06:54:47 -07:00
evan82
05f511f740
Merge pull request #128 from UdjinM6/fix_allow_masternode_in_safemode
...
allow masternode commands execution while client is in safemode
2015-01-23 06:54:23 -07:00
UdjinM6
d7bd499722
fix mn payment comment - blocknumbers / new dates according to stats from last 50k blocks
2015-01-23 16:37:58 +03:00
Evan Duffield
7e087dadb9
Merge branch 'master' of https://github.com/darkcoin/darkcoin
2015-01-23 06:29:27 -07:00
Evan Duffield
3aa0a68e00
Check pindexBestForkBase->phashBlock for NULL reference
2015-01-23 06:29:06 -07:00
UdjinM6
bf312bcead
add missing DS/MN/IX options descriptions in help output
2015-01-22 19:31:52 +03:00
UdjinM6
2dc22e9dbe
allow masternode commands execution while client is in safe mode
2015-01-22 17:26:29 +03:00
UdjinM6
ed49131f96
fix dseg messaging / banning issue
2015-01-22 03:04:52 +03:00
Evan Duffield
70eb4efd2f
fixed
2015-01-21 16:12:04 -07:00
Evan Duffield
0918dab39b
fixed "masternode start" for remote masternodes after start
2015-01-21 14:57:02 -07:00
Evan Duffield
e6a937196d
version & protocol bump
2015-01-21 08:03:14 -07:00
Darkcoin
8f88c50035
Merge pull request #126 from UdjinM6/fix_ds_toggle_unlock
...
fix unlocking wallet on ds toggle event
2015-01-21 08:00:40 -07:00
Darkcoin
6ef9ba118b
Merge pull request #125 from UdjinM6/fix_ds_incorrect_txes
...
Fix incorrect DS txes + few small things including some cleanup / debugging
2015-01-21 08:00:01 -07:00
Evan Duffield
2c8d7299d7
Merge branch 'master' of https://github.com/darkcoin/darkcoin
2015-01-21 07:57:39 -07:00
Evan Duffield
78fe35f06d
Implemented DarkSend convertability
...
Darksend defaults to a new mode which enables inputs/outputs
of each session to be different. For example 10DRK can be input
and 1DRKx10 can be output. This strengthens the anonymity of
Darksend greatly, which also increasing the usability (Users who
run out of .1DRK denominations can simply turn on Darksend to
split up larger inputs).
2015-01-21 07:55:21 -07:00
UdjinM6
da96ad5063
fix unlocking wallet on ds toggle - should just check for passphrase here and then use the same conditions as unencrypted
2015-01-21 09:29:09 +03:00
UdjinM6
c91b5202b7
fix ds incorrect txes issue / lowestDenom logic / styling
2015-01-21 09:09:04 +03:00
Darkcoin
625e29334d
Merge pull request #110 from vertoe/devel-0.9-tools
...
Creat a tools menu with info, console and network items.
2015-01-20 14:34:13 -07:00
Evan Duffield
bbd869589c
Collateral issues / Exact denoms / Disabled denoms
...
- When attempting to connect to a masternode for submission into the pool a recursive call to DoAutoDenominate was used. This could possibly take more than 1 minute to complete if it found a string of bad masternodes, in which case the correct masternode was overwritten and replaced with an invalid one. Upon submission, the DS TX was given to the incorrect node causing collateral to be charged.
- To fix this I've removed the recursion and added a critical section to DoAutoDenominate.
- Exact input denominations are matched in PrepareDarksendDenominate to remove the possibility of having change in the pool
- Removed disabled denominations, not needed anymore
2015-01-20 10:33:52 -07:00
Evan Duffield
3322b029ec
replaced IsInitialBlockDownload with more basic/faster check
2015-01-20 03:39:04 -07:00
Evan Duffield
47bb25d853
disable checktimeout when disabled
2015-01-20 03:32:32 -07:00
Evan Duffield
678a43c35b
disable reference node code when key is not present
2015-01-20 03:02:11 -07:00
Evan Duffield
b40bfacb55
improved anonymity for smaller wallets
2015-01-20 02:42:15 -07:00
Evan Duffield
31215c3a63
print lite mode status in log
2015-01-20 02:10:57 -07:00
Evan Duffield
bbc44f415f
lite mode disable checks on block
2015-01-20 02:08:26 -07:00
Evan Duffield
2737edbbf3
Removed non-denomational inputs (UdjinM6)
...
Exact amounts are now allocated directly to denominated
funds then submitted to the pool. This improves anonymity
by never having non-denomination inputs enter or exit the pool.
Randomness has also been added to the amount of each session to
improve anonymity.
2015-01-19 20:12:10 -07:00
Evan Duffield
b7f436bb5c
version bump
2015-01-19 09:25:13 -07:00
Cory Fields
58259ad1ed
qt: fix broken unicode chars on osx 10.10
...
- qt: avoid hard-coding font names
They may not contain all necessary characters for a language
- qt: fix broken unicode chars on osx 10.10
The default font changed again.
The real fix is to compile qt against a >= 10.8 sdk, but this is simple enough
to backport to 0.10 to avoid having to do that there.
Note: NSAppKitVersionNumber is a double and there's no official value for
NSAppKitVersionNumber10_10. Since == isn't reliable for doubles, use Apple's
guidelines for testing versions here:
https://developer.apple.com/library/mac/releasenotes/AppKit/RN-AppKit/
Chinese and Japanese fonts have been hard-coded as well, otherwise they fail to
show up at all.
- qt: fonts: allow SubstituteFonts to filter based on user's language
SubstituteFonts() has been moved to after app identification so that QSettings
are accessible.
Github-Pull: #5671
Rebased-From: 73cd4edb4f
52954e6efd
f5ad78b34a
2015-01-19 12:37:41 +01:00
Gregory Maxwell
186a517692
Restore RPC HTTP keepalives to default.
...
This avoids a regression for issues like #334 where high speed
repeated connections eventually run the HTTP client out of
sockets because all of theirs end up in time_wait.
Maybe the trade-off here is suboptimal, but if both choices will
fail then we prefer fewer changes until the root cause is solved.
Rebased-From: 1a25a7edf8
7d2cb48511
Github-Pull: #5674
2015-01-19 12:16:17 +01:00
vertoe
40a11fbc6b
merge downstream 0.11.0
2015-01-19 10:04:24 +01:00
Evan Duffield
6dd7e0f1ce
corrected getblocktemplate coinbasevalue output
2015-01-18 12:49:47 -07:00
Evan Duffield
908b105ded
Merge branch 'master' of https://github.com/darkcoin/darkcoin
2015-01-18 08:29:35 -07:00
Evan Duffield
539a8683a4
Added LiteMode
...
LiteMode disables Darksend/Masternodes/InstantX for clients
who want speed and don't need access to these features. UI
for Darksend is also hidden while in this mode.
2015-01-18 08:28:16 -07:00
Darkcoin
b5e4d58e96
Merge pull request #118 from freynder/keepass
...
Cleaned up debug log and adhere to coding conventions
2015-01-18 08:11:30 -07:00
Francis Reynders
f0450ab022
Cleaned up debug log and set curly braces according to coding conventions
...
- write to debug log only when debug option is specified
- do not log communication data that can contain secure information
- use newinline for curly braces according to coding conventions
2015-01-18 15:59:41 +01:00
Darkcoin
daab1083cf
Merge pull request #116 from UdjinM6/110x_ds_fix2
...
110x ds fix2
2015-01-18 07:40:45 -07:00
UdjinM6
0a7f74ea13
fix low res of icns
2015-01-17 02:11:32 +03:00
Evan Duffield
b329a2f19b
version bump
2015-01-16 14:00:48 -07:00
vertoe
333d5ae781
Creat a tools menu with info, console and network items.
2015-01-16 10:55:24 +01:00
UdjinM6
33a7c539ba
another attempt to simplify ds and fix some issues
2015-01-15 17:41:56 +03:00
vertoe
60b6ef59dd
Mix 8 rounds default.
2015-01-15 13:45:03 +01:00
vertoe
afa587176c
Fix typos.
2015-01-15 13:27:46 +01:00
vertoe
0a1d09aeff
Adapt BIP44 coin type 5 for Darkcoin (placeholder).
2015-01-15 12:55:50 +01:00
vertoe
389ff61339
merge downstream 0.11
2015-01-15 12:42:28 +01:00
vertoe
b8e53a337c
merge devel-0.9
2015-01-15 12:40:25 +01:00
vertoe
c664137c9a
Use display unit instead of hardcoded DRK for darksend settings and set max to 16 rounds
2015-01-15 12:38:03 +01:00
vertoe
fb312b0cd3
Use display unit instead of hardcoded DRK for darksend hint
2015-01-15 12:20:09 +01:00
vertoe
a80da619a7
Use display unit instead of hardcoded DRK for darksend warning
2015-01-15 12:15:01 +01:00
vertoe
36acf7e57a
Use display unit instead of hardcoded DRK for darksend settings
2015-01-15 12:07:00 +01:00
vertoe
e6ce27defd
Update copyright year 2015
2015-01-15 11:31:35 +01:00
Gregory Maxwell
aaf55d25c6
Add a -rpckeepalive and disable RPC use of HTTP persistent connections.
...
It turns out that some miners have been staying with old versions of
Bitcoin Core because their software behaves poorly with persistent
connections and the Bitcoin Core thread and connection limits.
What happens is that underlying HTTP libraries leave connections open
invisibly to their users and then the user runs into the default four
thread limit. This looks like Bitcoin Core is unresponsive to RPC.
There are many things that should be improved in Bitcoin Core's behavior
here, e.g. supporting more concurrent connections, not tying up threads
for idle connections, disconnecting kept-alive connections when limits
are reached, etc. All are fairly big, risky changes.
Disabling keep-alive is a simple workaround. It's often not easy to turn
off the keep-alive support in the client where it may be buried in some
platform library.
If you are one of the few who really needs persistent connections you
probably know that you want them and can find a switch; while if you
don't and the misbehavior is hitting you it is hard to discover the
source of your problems is keepalive related. Given that it is best
to default to off until they're handled better.
Github-Merge: #5655
Rebased-From: 16a5c18cea
56c1093dae
1dd8ee72af
2015-01-15 09:38:24 +01:00
Evan Duffield
7a1f2192a7
Fixed UI update bug
2015-01-14 10:16:48 -07:00
Evan Duffield
8038fdfcff
Rounds calculation stopped at 8
2015-01-14 07:52:43 -07:00
Evan Duffield
1dea6cb2cc
Rounds calculation stopped at 8
2015-01-14 07:50:40 -07:00
Evan Duffield
201b3fb77e
Fixed performance issues with --reindex
2015-01-14 07:28:35 -07:00
Evan Duffield
cf6ecddf21
updated mac icons
2015-01-13 12:39:52 -07:00
Evan Duffield
cd5c755428
Coinbase Maturity / cleanup
2015-01-13 10:58:24 -07:00
Evan Duffield
0739536ec0
windows compilation fix
2015-01-13 07:08:58 -07:00
Evan Duffield
88d1e63f72
changed max rounds to 16
2015-01-12 13:07:48 -07:00
Evan Duffield
4ab6c5d6da
Fixed masternode payments issue
2015-01-12 12:05:20 -07:00
Darkcoin
984c923ac5
Merge pull request #106 from vertoe/devel-0.9
...
OpenSSL 1.0.1k handling of DER signatures
2015-01-12 10:54:32 -07:00
Darkcoin
44bb7c809a
Merge pull request #105 from UdjinM6/110x_fix_mn_conf_read
...
"path" argument isn't used in masternode conf read function
2015-01-12 10:52:56 -07:00
Darkcoin
3dcdfc6ff2
Merge pull request #96 from freynder/keepass
...
Implemented KeePass Integration
2015-01-12 10:52:07 -07:00
Evan Duffield
76ab102ff7
Various fixes for 11.0.5
...
-Darksend balance shows sendable amount now.
-Fixed "darksend is disabled" inaccurate message
-Fixed crashing on -reindex and -gen
2015-01-12 10:04:28 -07:00
vertoe
4269e16f0d
merge downstream 0.11.x
2015-01-12 16:04:47 +01:00
Evan Duffield
5c16596b01
Fixed darksend balance update on click
2015-01-12 07:10:38 -07:00
Evan Duffield
7098126b52
Fix for random segfaultfrom Masternode::Check
2015-01-12 06:58:33 -07:00
Pieter Wuille
4e7c219122
Catch UTXO set read errors and shutdown
...
Github-Pull: #5619
Rebased-From: 13cdce4336
2015-01-12 11:28:39 +01:00
Pieter Wuille
a3a73170a9
Introduce 10 minute block download timeout
...
This will disconnect peers that do not transfer a block in 10 minutes, plus
5 minutes for every previously queued block with validated headers
(accomodating downstream bandwidth down to a few kilobytes per second - below
that the node would have trouble staying synchronized anyway).
Github-Pull: #5608
Rebased-From: 916130348c
2015-01-12 11:28:23 +01:00
vertoe
daf9018b7f
merge upstream 0.9.4
2015-01-12 11:08:50 +01:00
Wladimir J. van der Laan
be8ac71d96
Bump version to 0.9.4
2015-01-12 10:33:39 +01:00
Wladimir J. van der Laan
f6b753912b
qt: Pull updated translations from Transifex
2015-01-12 10:17:54 +01:00
Wladimir J. van der Laan
037bfefe6b
Improve robustness of DER recoding code
...
Add some defensive programming on top of #5634 .
This copies the respective OpenSSL code in ECDSA_verify in
OpenSSL pre-1.0.1k (e.g. https://github.com/openssl/openssl/blob/OpenSSL_1_0_1j/crypto/ecdsa/ecs_vrf.c#L89 )
more closely.
As reported by @sergiodemianlerner.
Github-Pull: #5640
Rebased-From: c6b7b29f23
2015-01-12 09:28:24 +01:00
Wladimir J. van der Laan
12b7c444f0
Improve robustness of DER recoding code
...
Add some defensive programming on top of #5634 .
This copies the respective OpenSSL code in ECDSA_verify in
OpenSSL pre-1.0.1k (e.g. https://github.com/openssl/openssl/blob/OpenSSL_1_0_1j/crypto/ecdsa/ecs_vrf.c#L89 )
more closely.
As reported by @sergiodemianlerner.
Github-Pull: #5640
Rebased-From: c6b7b29f23
2015-01-12 09:12:12 +01:00
vertoe
ebb7eab77d
Merge downstream v0.11.0.x
2015-01-12 07:45:47 +01:00
vertoe
928613c03c
merge branch '0.9' of https://github.com/bitcoin/bitcoin into devel-0.9
2015-01-12 07:42:34 +01:00
Evan Duffield
560cf0e7a0
Merge branch 'v0.11.0.x' of https://github.com/darkcoin/darkcoin into v0.11.0.x
2015-01-11 11:01:31 -07:00
Evan Duffield
f1e2c1e031
Fix Masternode::Check() Segfault
...
Client crashes about every 24h on mainnet (with lots of masternodes)
and very rarely on testnet. AcceptableInputs has no need to check
HaveCoins as AcceptToMemoryPool does and would rarely cause the
segfault to occur.
2015-01-11 10:59:36 -07:00
Darkcoin
f8c907d806
Merge pull request #104 from UdjinM6/110x_dsbalance
...
add darksend balance to getinfo
2015-01-11 10:56:45 -07:00
UdjinM6
560b06fc38
no need to get conf file in function call
2015-01-11 20:28:28 +03:00
Wladimir J. van der Laan
60c51f1c38
fail immediately on an empty signature
...
Github-Pull: #5634
Rebased-From: 8dccba6a45
2015-01-10 08:58:47 +01:00
Cory Fields
b8e81b7ccd
consensus: guard against openssl's new strict DER checks
...
New versions of OpenSSL will reject non-canonical DER signatures. However,
it'll happily decode them. Decode then re-encode before verification in order
to ensure that it is properly consumed.
Github-Pull: #5634
Rebased-From: 488ed32f2a
2015-01-10 08:31:14 +01:00
Cory Fields
76ce5c8de3
fail immediately on an empty signature
...
Github-Pull: #5634
Rebased-From: 8dccba6a45
2015-01-10 08:10:38 +01:00
Cory Fields
ace39db764
consensus: guard against openssl's new strict DER checks
...
New versions of OpenSSL will reject non-canonical DER signatures. However,
it'll happily decode them. Decode then re-encode before verification in order
to ensure that it is properly consumed.
Github-Pull: #5634
Rebased-From: 488ed32f2a
2015-01-10 08:10:29 +01:00
Evan Duffield
6814d137fd
check ports in masternode.conf
2015-01-09 12:45:41 -07:00
Evan Duffield
c1fde4da39
version bump - 11.4
2015-01-08 15:22:33 -07:00
Evan Duffield
a3416f9441
fixed display issues for Darksend transaction
2015-01-08 15:21:05 -07:00
Evan Duffield
6bd5ec15b3
Unlock coins when using Darksend reset button
2015-01-08 14:16:17 -07:00
Evan Duffield
e73403b5ac
Merge branch 'v-1.11.0.x' of https://github.com/darkcoin/darkcoin into v0.11.0.x
2015-01-08 14:11:41 -07:00
Evan Duffield
9ad42576e9
schedule masternode payments to turn on 1/9/2015
2015-01-08 14:11:05 -07:00
UdjinM6
eb7abd8ba7
add darksend balance to getinfo
2015-01-08 21:19:39 +01:00
Darkcoin
4a6d17ef18
Merge pull request #103 from crowning-/patch-3
...
Non-void function should always return something.
2015-01-08 11:12:37 -07:00
Evan Duffield
caa4fc37af
Updated getblocktemplate for mining support
2015-01-08 11:02:10 -07:00
Evan Duffield
3c553cc4a7
Fixed start-many issue with multiple output tx
...
masternode.conf was broken when any index other than 0 was
used. This fixes it and allows the correct input to be selected
and the masternode to be started successfully.
2015-01-08 09:05:59 -07:00
Cory Fields
263b65ebf0
tests: run sanity checks in tests too
...
If these are going to fail in bitcoind, they should fail in the tests as well.
Github-Pull: #5604
Rebased-From: d58c5d6f21
2015-01-08 12:08:14 +01:00
Wladimir J. van der Laan
7fdbedcaf8
Merge pull request #5542
...
2ecd294
Bugfix: configure: Correctly detect "nothing to build" condition (Luke Dashjr)
b7a4ecc
Bugfix: Only check for boost when building code that requires it (Luke Dashjr)
a19eeac
Bugfix: configure: Check for openssl/ec.h (Luke Dashjr)
fe925e2
Use EXTRA_LIBRARIES instead of noinst_LIBRARIES so we can avoid building unused code (Cory Fields)
2015-01-08 09:34:11 +01:00
Pieter Wuille
867c600c29
Catch LevelDB errors during flush
...
Rebased-From: e41345790f
Github-Pull: #5597
2015-01-07 13:11:58 +01:00
Pieter Wuille
008138c04a
Bugfix: only track UTXO modification after lookup
...
Otherwise, if CCoinsViewCache::ModifyCoins throws an exception in between
setting hasModifier and constructing the CCoinsModifier, the cache ends up
in an inconsistent state, resulting in an assert failure in the next
modification.
Bug discovered by Wladimir J. van der Laan.
Rebased-From: 1c52aad540
Github-Pull: #5597
2015-01-07 13:11:54 +01:00
Pieter Wuille
3022e7df2a
Require sufficent priority for relay of free transactions
...
Rebased-From: 1c52aad540
Github-Pull: #5535
2015-01-07 13:11:49 +01:00
crowning-
371a16a924
Non-void function should always return something.
2015-01-06 22:05:39 +01:00
Cory Fields
fe925e221f
Use EXTRA_LIBRARIES instead of noinst_LIBRARIES so we can avoid building unused code
2015-01-06 20:00:25 +00:00
Eric R. Schulz
06fdf326d3
bitcoin-tx: Fix JSON validation of prevtxs
...
Github-Pull: #5528
Rebased-From: 2a3d988b80
a089c50981
2c14d1532f
2015-01-06 17:32:31 +01:00
Pieter Wuille
58fda4d689
Update seed IPs, based on bitcoin.sipa.be crawler data
...
Rebased-From: be22b3da1d
Github-Pull: #5532
2015-01-06 11:02:50 +01:00
Thomas Zander
94b362dbd6
On close of splashscreen interrupt verifyDB
...
With the splashscreen being able to be closed it is possible to
shutdown during the lengthy verifyDB method. (Takes about a minute
on my machine). This change allows us to shutdown much sooner.
Github-Pull: #5557
Rebased-From: 70477a0bdf
2015-01-03 10:22:48 +01:00
Evan Duffield
6df70d30b1
Fixed progress bar / Improve GetDenominatedBalance
...
- Fixed a few issues when calculating progress including some variables that should be limited to 1 (a and b). GetDenominatedBalance also seemed to be giving bad results so I rewrote it to be cleaner, not sure if that was a part of the problem.
- Progress bar is only recalculated when all inputs in wallet have been confirmed (will stop the progress from jumping around)
2015-01-02 15:20:30 -07:00
Evan Duffield
8ab351a594
configure.ac version bump and documentation
2015-01-02 11:45:40 -07:00
Evan Duffield
12bac4a862
gitian changes, tooltips and version bump
2015-01-02 09:54:13 -07:00
Evan Duffield
58b8f19d2d
updated to v2
2015-01-02 08:35:31 -07:00
Darkcoin
ec6877bd18
Merge pull request #98 from vertoe/devel-0.9
...
Update pixmaps
2015-01-02 08:31:44 -07:00
Evan Duffield
899063acf8
Fixed windows crashing issues
...
Crash was caused by Params() usage in CDarkSendPool::CDarkSendPool upon wallet start. I've moved init of the collateral address outside of the class to CDarkSendPool.InitCollateralAddress() instead.
2015-01-02 07:49:44 -07:00
vertoe
295b7294e6
Update wallet name to Darkcoin
2015-01-02 14:58:25 +01:00
Philip Kaufmann
50891ad080
[Qt] update a translation string and argument counts
...
Rebased-From: 643415aade
Github-Pull: #5583
2015-01-02 11:20:51 +01:00
Wladimir J. van der Laan
4f57a3b20c
Bump project-wide COPYRIGHT_YEAR to 2015
...
There is still a redundancy here between configure.ac and
clientversion.h.
Rebased-From: edbc9045cb
2015-01-02 11:04:57 +01:00
Wladimir J. van der Laan
8061d67aeb
Remove redundant copyright notices from README files
...
The normative place for these for the entire project is COPYING,
and the main README already has a MIT license section.
Rebased-From: e6df2bb48f
2015-01-02 11:03:13 +01:00
crowning-
6a93a7c47b
Exclude localnet addresses
...
127.0.0.* addresses shouldn't show up in "masternode list"
2015-01-01 20:18:23 +01:00
Francis Reynders
bdb50539de
Implemented KeePass Integration
...
More info regarding KeePass: http://keepass.info/
KeePass integration will use KeePassHttp (https://github.com/pfn/keepasshttp/ ) to facilitate communications between the client and KeePass. KeePassHttp is a plugin for KeePass 2.x and provides a secure means of exposing KeePass entries via HTTP for clients to consume.
The implementation is dependent on the following:
- crypter.h for AES encryption helper functions.
- rpcprotocol.h for handling RPC communications. Could only be used partially however due some static values in the code.
- OpenSSL for base64 encoding. regular util.h libraries were not used for base64 encoding/decoding since they do not use secure allocation.
- JSON Spirit for reading / writing RPC communications
The following changes were made:
- Added CLI options in help
- Added RPC commands: keepass <genkey|init|setpassphrase>
- Added keepass.h and keepass.cpp which hold the integration routines
- Modified rpcwallet.cpp to support RPC commands
The following new options are available for darkcoind and darkcoin-qt:
-keepass Use KeePass 2 integration using KeePassHttp plugin (default: 0)
-keepassport=<port> Connect to KeePassHttp on port <port> (default: 19455)
-keepasskey=<key> KeePassHttp key for AES encrypted communication with KeePass
-keepassid=<name> KeePassHttp id for the established association
-keepassname=<name> Name to construct url for KeePass entry that stores the wallet passphrase
The following rpc commands are available:
- keepass genkey: generates a base64 encoded 256 bit AES key that can be used for the communication with KeePassHttp. Only necessary for manual configuration. Use init for automatic configuration.
- keepass init: sets up the association between darkcoind and keepass by generating an AES key and sending an association message to KeePassHttp. This will trigger KeePass to ask for an Id for the association. Returns the association and the base64 encoded string for the AES key.
- keepass setpassphrase <passphrase>: updates the passphrase in KeePassHttp to a new value. This should match the passphrase you intend to use for the wallet. Please note that the standard RPC commands walletpassphrasechange and the wallet encrption from the QT GUI already send the updates to KeePassHttp, so this is only necessary for manual manipulation of the password.
Sample initialization flow from darkcoin-qt console (this needs to be done only once to set up the association):
- Have KeePass running with an open database
- Start darkcoin-qt
- Open console
- type: "keepass init" in darkcoin-qt console
- (keepass pops up and asks for an association id, fill that in). Example: mydrkwallet
- response: Association successful. Id: mydrkwalletdarkcoin - Key: AgQkcs6cI7v9tlSYKjG/+s8wJrGALHl3jLosJpPLzUE=
- Edit darkcoin.conf and fill in these values
keepass=1
keepasskey=AgQkcs6cI7v9tlSYKjG/+s8wJrGALHl3jLosJpPLzUE=
keepassid=mydrkwallet
keepassname=testwallet
- Restart darkcoin-qt
At this point, the association is made. The next action depends on your particular situation:
- current wallet is not yet encrypted. Encrypting the wallet will trigger the integration and stores the password in KeePass (Under the 'KeePassHttp Passwords' group, named after keepassname.
- current wallet is already encrypted: use "keepass setpassphrase <passphrase>" to store the passphrase in KeePass.
At this point, the passphrase is stored in KeePassHttp. When Unlocking the wallet, one can use keepass as the passphrase to trigger retrieval of the password. This works from the RPC commands as well as the GUI.
2015-01-01 20:06:24 +01:00
Evan Duffield
4eb14d271b
Change minversion to 70046
2015-01-01 11:15:24 -07:00
vertoe
9cc07aec1c
Hotfix for version.h
2015-01-01 19:03:25 +01:00
Evan Duffield
f46ec0db80
Change minversion to 70046
2015-01-01 10:46:18 -07:00
Evan Duffield
447ae896c0
Merge branch 'v0.11.0.x' of https://github.com/darkcoin/darkcoin into v0.11.0.x
2015-01-01 09:12:53 -07:00
Evan Duffield
b87c2fe9dc
Fix for gitian windows compiling
2015-01-01 09:12:28 -07:00
Darkcoin
c1269e7850
Merge pull request #92 from vertoe/devel-0.9
...
Update darkcoin units to tDRK if TestNet().
2015-01-01 07:49:58 -07:00
Darkcoin
a29b991091
Merge pull request #93 from vertoe/devel-0.9-bip0032
...
Update BIP32 base58 address prefixes to darkcoin uniques.
2015-01-01 07:49:12 -07:00
vertoe
024e255a5b
Update BIP32 base58 address prefixes to darkcoin uniques.
2014-12-31 13:50:14 +01:00
vertoe
54f54f4a67
Update darkcoin units to tDRK if TestNet().
2014-12-31 13:27:32 +01:00
Luke Dashjr
1eadfd9753
Bugfix: prioritisetransaction: Do some basic sanity checking on txid
...
Besides giving a nicer error, this also prevents logging arbitrary data (which could have been used to exploit log readers) into debug.log
Rebased-From: 7f71813919
Github-Pull: #5499
2014-12-31 10:53:26 +01:00
Gregory Maxwell
18021d08f7
Remove bitnodes.io from dnsseeds.
...
I'm not comfortable with retaining this entry.
Rebased-From: a094b3d973
Github-Pull: #5545
2014-12-31 10:43:22 +01:00
Wladimir J. van der Laan
b790d139c9
English translation update
2014-12-31 10:39:17 +01:00
Michael Ford
8543b0dfd9
Correct tooltip on address book page
...
Rebased-From: 06206bb3b7
Github-Pull: 5571
2014-12-31 10:38:04 +01:00
Evan Duffield
d219a6c51a
randomly sort masternodes before picking next winner
2014-12-30 22:45:45 -07:00
Evan Duffield
bc20787fec
Added perfectly balanced masternode payments
...
- Implemented using a simple round robin algorithm instead of the deterministic round robin approach (was slightly unbalanced)
2014-12-30 22:40:53 -07:00
Evan Duffield
826b18c41f
Regtest+Darksend / Dsee update / vecMasternodes
...
- Made masternodes/darksend compatible with regression testing mode (a local-only blockchain that doesn't require mining). Developers can now test multiple rounds in a few minutes without waiting on mining (much faster).
- Added dsee security verification to v11
- darkSendMasternodes -> vecMasternodes (must clearer)
2014-12-30 19:54:00 -07:00
Evan Duffield
a290bc06f2
Further improvements to the matching engine
2014-12-30 15:42:50 -07:00
Evan Duffield
80144a47ab
Disable local addresses
2014-12-30 14:41:28 -07:00
Evan Duffield
75b169e2aa
Simplified CWallet::PrepareDarksendDenominate
2014-12-30 14:00:19 -07:00
Evan Duffield
141f833a00
Matching engine improvements
...
Fixed issues with matching from rounds 0 to 2
2014-12-30 12:42:34 -07:00
Evan Duffield
aa63a99162
Percision matching engine / masternode regtest
...
- Fixed matching engine issue causing false positive non-denominational matches
- Basic masternode support for regtest (still not working)
2014-12-30 11:14:58 -07:00
Cory Fields
87d43a3c8e
rpcserver: attempt to fix uncaught exception.
...
Rebased-From: f9c571aad8
Github-Pull: #5565
2014-12-30 17:38:03 +01:00
Evan Duffield
b20581125d
Added Darksend high precision matching engine
...
Darksend is now capable of taking queue objects (which show who wants to mix what)
and looking at it's own inputs to see if it's at all possible to join their mixing
session. This plus other improvements should make Darksend much faster for mixing
coins.
2014-12-29 17:09:34 -07:00
Evan Duffield
762080140b
Various Darksend Improvements
...
- Denomination label shows n/a after reset now
- Fixed collateral checking bug introduced by updating to Bitcoin v9 codebase
2014-12-29 08:50:40 -07:00
Evan Duffield
139f14a1a4
Enabled Darksend NewBlock checks
2014-12-28 17:33:56 -07:00
Evan Duffield
afcc015cf4
Report errors delivered via dssu to gui
2014-12-28 07:46:39 -07:00
Wladimir J. van der Laan
ed934bdb4d
pull new translations from transifex
2014-12-28 12:21:17 +01:00
Evan Duffield
34a60fb7de
Much improved feedback for Darksend
...
DoAutoDenomination just wrote to the debug.log and because of that users commonly would have a hard time seeing what was happening. This fixes that by setting a status and displaying that status in the overview.
2014-12-27 18:08:45 -07:00
Evan Duffield
3acb5c6388
added denomination information to overview, reset/try again buttons
2014-12-27 16:45:07 -07:00
Evan Duffield
ff8285060d
Merge branch 'v0.11.0.x' of https://github.com/darkcoin/darkcoin into v0.11.0.x
2014-12-27 08:28:47 -07:00
Evan Duffield
36aa6bd675
fixed message magic, should be DarkCoin
2014-12-27 08:28:23 -07:00
UdjinM6
142ff7a3ab
restrict start if masternode.conf has incorrect format / move error message out of debug.log to stderr/qt-dialog
2014-12-27 15:47:08 +03:00
Luke Dashjr
52e57055cc
en: Avoid ambiguous language regarding when transactions confirm
...
Rebased-From: a15dba5dff
Github-Pull: #5533
2014-12-27 05:03:39 +01:00
Peter Todd
06ca0651b6
Fix CScriptID(const CScript& in) in empty script case
...
Previously an empty script wouldn't be hashed, and CScriptID would be
assigned the incorrect value of 0 instead. This bug can be seen in the
RPC decodescript command:
$ btc decodescript ""
{
"asm" : "",
"type" : "nonstandard",
"p2sh" : "31h1vYVSYuKP6AhS86fbRdMw9XHieotbST"
}
Correct output:
$ btc decodescript ""
{
"asm" : "",
"type" : "nonstandard",
"p2sh" : "3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy"
}
Rebased-From: d78f0dafd5
Github-Pull: #5541
2014-12-27 04:09:41 +01:00
vertoe
ab52409f0e
Merge branch 'v0.11.0.x' of https://github.com/darkcoin/darkcoin into devel-0.9
2014-12-27 00:55:52 +01:00
vertoe
86cc5d35cc
Update client name
2014-12-27 00:54:59 +01:00
vertoe
2a4e872364
Change orange to blue
2014-12-27 00:54:25 +01:00
vertoe
d2d798c9b0
Merge branch 'devel-0.9-keys' into devel-0.9
2014-12-27 00:33:22 +01:00
vertoe
bdaa900bbe
Update strings in UI.
2014-12-27 00:16:50 +01:00
Darkcoin
dc71c6df25
Merge pull request #85 from vertoe/devel-0.9-keys
...
Change pubkey addresses for multisig addresses and testnet.
2014-12-26 16:00:14 -07:00
Evan Duffield
13e49d5470
Merge branch 'v0.11.0.x' of https://github.com/darkcoin/darkcoin into v0.11.0.x
2014-12-26 15:30:20 -07:00
Evan Duffield
c94600a2c8
Added coincontrol darksend rounds colunm from v10
2014-12-26 15:30:00 -07:00
vertoe
fd3de20a88
Change pubkey addresses for multisig addresses and testnet
2014-12-26 23:28:08 +01:00
Darkcoin
cbf7339deb
Merge pull request #84 from vertoe/devel-0.9-dns
...
Add seednode by @coingun (branch v11)
2014-12-26 14:11:41 -07:00
Darkcoin
04ab85a591
Merge pull request #83 from vertoe/devel-0.9
...
Clean testnet reset to v3. (branch v11)
2014-12-26 14:10:12 -07:00
Darkcoin
766e654e42
Merge pull request #81 from UdjinM6/110_fix_regtesterror_testnetdetect
...
fix crash on regtest block generation / slightly simplify _if_ for testnet detection
2014-12-26 14:05:46 -07:00
Evan Duffield
12e8fd0461
Improved support for adding DRK after anon has completed
2014-12-26 14:04:36 -07:00
vertoe
c7bbff80ba
Add masternode.io dnsseed operated by @coingun
2014-12-26 21:32:11 +01:00
vertoe
b0f06bf4a8
Merge upstream commits of branch 'v0.11.0.x' of darkcoin/darkcoin into devel-0.9
2014-12-26 21:26:05 +01:00
vertoe
71f3d6eb06
revert 4f95ea2
: testnet v4
2014-12-26 21:23:25 +01:00
Evan Duffield
f2c21fd1e7
Better support for non-specific masternode payments
2014-12-26 13:14:45 -07:00
Evan Duffield
0718f75a84
Fixed possible masternode payments exploit
2014-12-26 13:12:58 -07:00
Evan Duffield
3117b7d5f9
Merge branch 'v0.11.0.x' of https://github.com/darkcoin/darkcoin into v0.11.0.x
2014-12-26 13:02:49 -07:00
Evan Duffield
7fad12f623
Various Improved Darksend
...
- Progress bar is far more accurate now. It only takes into account the inputs that could possibly go into Darksend and ignores the rest.
- Darksend can support down to 1.5DRK now.
- New "masternode outputs" command for start-many
2014-12-26 13:00:56 -07:00
Darkcoin
9b710d2a86
Merge pull request #82 from UdjinM6/110_select_nondenom_first
...
when Darksend is unchecked select nondenom inputs first - for v0.11.0.x
2014-12-26 12:51:47 -07:00
Evan Duffield
80d2e3d067
Fixed progress bar calculation
...
division for amounts smaller than 1DRK were having issues.
fixed by dividing by CENT instead.
2014-12-26 08:39:47 -07:00
Evan Duffield
31ca8ad5f9
reducing lower limit to 1.5DRK
2014-12-25 20:58:58 -07:00
Evan Duffield
5eb3bcdcc0
Fixed darksend issues
2014-12-25 12:21:35 -07:00
Evan Duffield
039023d9c9
fixed Darksend settings
2014-12-25 11:20:18 -07:00
Evan Duffield
7604ace9be
Updated testnet configuration
2014-12-23 18:41:13 -07:00
Wladimir J. van der Laan
13e129ed9a
CLIENT_VERSION_IS_RELEASE → true
2014-12-23 18:12:12 +01:00
Evan Duffield
8bc9cd7f48
fix testnet v3
2014-12-23 08:32:55 -07:00
Wladimir J. van der Laan
f4dcc1e009
Merge pull request #5531
2014-12-23 14:26:36 +01:00
Pieter Wuille
63b5a1dc80
Do not use libgmp automatically in libsecp256k1
2014-12-23 14:20:28 +01:00
Wladimir J. van der Laan
3a88ba0794
qt: periodic language update
2014-12-23 12:58:33 +01:00
Adam Weiss
d10a9015ad
DOS: Respect max per-peer blocks in flight limit
...
Don't allow immediate inv driven block downloads if
a peer already has MAX_BLOCKS_IN_TRANSIT_PER_PEER
active downloads. Prevents bogus inv spam from
blowing up block transfer tracking data structures.
Rebased-From: c90770430d
Github-Pull: #5507
2014-12-23 12:36:26 +01:00
Gregory Maxwell
15ad0b54fa
Apply AreSane() checks to the fees from the network.
...
'Sane' was already defined by this code as:
fee.GetFeePerK() > minRelayFee.GetFeePerK() * 10000
But sanity was only enforced for data loaded from disk.
Note that this is a pretty expansive definition of 'sane': A 10 BTC
fee is still passes the test if its on a 100kb transaction.
This prevents a single insane fee on the network from making us reject
our stored fee data at start. We still may reject valid saved fee
state if minRelayFee is changed between executions.
This also reduces the risk and limits the damage from a cascading
failure where one party pays a bunch of insane fees which cases
others to pay insane fees.
Rebased-From: 6484930690
Github-Pull: #5481
2014-12-23 12:30:14 +01:00
Gregory Maxwell
11855c1f99
Enforce minRelayTxFee on wallet created tx and add a maxtxfee option.
...
Previously the minRelayTxFee was only enforced on user specified values.
It was possible for smartfee to produce a fee below minRelayTxFee which
would just result in the transaction getting stuck because it can't be
relayed.
This also introduces a maxtxfee option which sets an absolute maximum
for any fee created by the wallet, with an intention of increasing
user confidence that the automatic fees won't burn them. This was
frequently a concern even before smartfees.
If the configured fee policy won't even allow the wallet to meet the relay
fee the transaction creation may be aborted.
Rebased-From: aa279d6131
Github-Pull: #5485
2014-12-23 12:12:40 +01:00
Pieter Wuille
8446262597
Reject headers that build on an invalid parent
...
Rebased-From: 3497022347
Github-Pull: #5459
2014-12-23 12:01:09 +01:00
UdjinM6
ae627a2109
fix crash(error thrown) on regtest block generation / slightly simplify _if_ for testnet detection
2014-12-23 06:17:20 +03:00
UdjinM6
f77b2d5943
when Darksend is unchecked select nondenom inputs first - for v11
2014-12-23 06:06:47 +03:00
Evan Duffield
67330fbb51
Added Darksend to v11
2014-12-22 19:30:19 -07:00
Evan Duffield
692ec7c328
Fix mn spam - UdjinM6
2014-12-22 18:23:04 -07:00
Evan Duffield
560bf9bc0b
Fix status update (darksend mixing stuck - UdjinM6)
2014-12-22 18:17:47 -07:00
Jameson Lopp
ad3d208fb9
remove max orphan blocks config parameter since it is no longer functional
...
Rebased-From: 4bc95c4387
2014-12-22 15:03:50 +01:00
Peter Todd
0cb8763cbb
Check against MANDATORY flags prior to accepting to mempool
...
Previously transactions were only tested again the
STANDARD_SCRIPT_VERIFY_FLAGS prior to mempool acceptance, so any bugs in
those flags that allowed actually-invalid transactions to pass would
result in allowing invalid transactions into the mempool. Fortunately
there is a second check in CreateNewBlock() that would prevent those
transactions from being mined, resulting in an invalid block, however
this could still be exploited as a DoS attack.
Rebased-From: 7c041b3b91
2014-12-22 12:42:58 +01:00
Philip Kaufmann
b03632a671
add missing CAutoFile::IsNull() check in main
...
Rebased-From: 84857e87e4
Github-Pull: #5437
2014-12-19 18:49:57 +01:00
Wladimir J. van der Laan
c3c635b316
version 0.9.99 -> 0.10.0
...
Bump version but keep CLIENT_VERSION_IS_RELEASE at false as this is not
a release yet.
2014-12-16 18:51:50 +01:00
Francis Reynders
b57bfe0b1e
Fixed lookup for correct vin in GetMasterNodeVin when txHash is available.
2014-12-16 18:45:43 +01:00
evan82
3a7f3f8dba
Merge pull request #72 from UdjinM6/110x_fix_sending_locking
...
fix wallet locking after sending coins
2014-12-14 07:49:38 -07:00
Francis Reynders
55cae78c3b
Improve support for start-many:
...
- refactored CActiveMasternode
- added masternodeconfig to handle remote masternode configuration
- read masternodeconfig upon init
- new masternode rpc commands: stop-many, start-alias, stop-alias, list-conf
- added notCapableReason field for better handling not capable issues
2014-12-14 06:06:39 +01:00
Evan Duffield
d3a5569807
Merge branch 'v-1.11.0.x' of https://github.com/darkcoin/darkcoin into v0.11.0.x
2014-12-13 08:18:20 -07:00
Evan Duffield
64de16ed10
prevent testnet from rejecting blocks missing masternode payments
2014-12-13 08:17:32 -07:00
crowning-
6b8fb97182
On client shutdown write directly into "peers.dat"...
...
...and not into a temporary file which gets renamed to "peers.dat" later.
This prevents softlinks from being replaced by a "real" file, see http://jira.darkcoin.qa/browse/DRK-122
Update of https://github.com/darkcoin/darkcoin/pull/63 to the new Bitcoin codebase.
2014-12-13 15:52:57 +01:00
Evan Duffield
5d14e8c6b3
Fixed testnet syncing issues
2014-12-12 15:19:02 -07:00
Evan Duffield
d87e4e6b55
Fixed testnet segfault issue causes by null pointer
2014-12-12 11:45:05 -07:00
UdjinM6
9db0eaa9b3
fix wallet locking after sending coins
2014-12-12 21:10:38 +03:00
vertoe
6e208f6625
Merge strings.
2014-12-12 13:00:21 +01:00
vertoe
adbd2274e0
Update strings.
2014-12-12 12:44:25 +01:00
Pavel Janík
44b4c0d8a9
signrawtransaction: validate private key.
...
Github-Pull: #5461
Rebased-From: aa768f1848
2014-12-12 11:56:28 +01:00
donSchoe
c2cf2fb44c
Align with branch v0.11.0.x of darkcoin/darkcoin.
2014-12-11 22:46:43 +01:00
Evan Duffield
0184cf744d
Merged: fix CDarksendQueue::CheckSignature() failure by preventing COutPoint::ToString() to cut hash to 10 symbols only (UdjinM6)
2014-12-11 12:27:55 -07:00
Evan Duffield
56bf9fdb75
Fixed attribution and a few Bitcoin references
2014-12-11 12:10:05 -07:00
UdjinM6
43b2576253
fix walletpassphrase logic/params/description
2014-12-11 21:43:21 +03:00
Evan Duffield
9aac2038f1
Merged: Error message changed (crowning)
2014-12-11 09:01:39 -07:00
Evan Duffield
2a33377fc8
Merged: Typo in log output (crowning)
2014-12-11 08:58:38 -07:00
Evan Duffield
eb87b05ddf
Brought over 10.18 changes from old branch
2014-12-11 08:36:02 -07:00
Evan Duffield
78c5ca53f6
Merged in Darksend/InstantX/Masternodes
...
This doesn't include any of the changes in the darkcoin/v0.10.18.x branch. Those will be brought over into this commit history.
2014-12-11 08:10:35 -07:00
Wladimir J. van der Laan
41cced2106
Merge pull request #5267
...
34318d7
RPC-test based on invalidateblock for mempool coinbase spends (Gavin Andresen)
7fd6219
Make CTxMemPool::remove more effecient by avoiding recursion (Matt Corallo)
b7b4318
Make CTxMemPool::check more thourough by using CheckInputs (Matt Corallo)
723d12c
Remove txn which are invalidated by coinbase maturity during reorg (Matt Corallo)
868d041
Remove coinbase-dependant transactions during reorg. (Matt Corallo)
2014-12-11 15:24:00 +01:00
vertoe
c1aae9e3bd
Change init resource to darkcoin
2014-12-11 14:29:22 +01:00
UdjinM6
80c4636840
fix test_bitcoin -> test_darkcoin
2014-12-11 14:20:10 +01:00
UdjinM6
91795c25b1
fix broken build (UdjinM6)
2014-12-11 14:07:31 +01:00
Wladimir J. van der Laan
7c001bb49c
qt: translations pull from transifex
2014-12-11 11:10:23 +01:00
Wladimir J. van der Laan
5e521d3e4e
Merge pull request #5391
...
932ef50
[REST] JSON output: remove block infos from tx details if it is nested in block (Jonas Schnelli)
cae5486
[REST] added /rest/block/notxdetails/<hash> into REST-interface.md documentation (Jonas Schnelli)
73351c3
[REST] /rest/block response with full tx details (Jonas Schnelli)
2014-12-11 10:33:11 +01:00
Wladimir J. van der Laan
34468066ff
Merge pull request #5399
...
4be639e
Use RPC_INVALID_PARAMETER instead of RPC_WALLET_ERROR for invalid amount. No return at the end of void function. (Pavel Janík)
b93173d
Move SendMoney() to rpcwallet.cpp. (Pavel Janík)
2014-12-10 08:22:20 +01:00
vertoe
6662300900
Change sources to darkcoin*.
2014-12-10 00:35:43 +01:00
vertoe
8fbde6cfeb
Update rpc strings.
2014-12-10 00:22:01 +01:00
vertoe
6089696ade
Merge bitcoin core upstream commits
2014-12-09 23:42:56 +01:00
vertoe
e449d7b4e7
Change binaries to darkcoin*.
2014-12-09 23:38:13 +01:00
vertoe
828b6d38a1
Update strings.
2014-12-09 23:19:26 +01:00
Jonas Schnelli
932ef50f77
[REST] JSON output: remove block infos from tx details if it is nested in block
2014-12-09 16:05:51 +01:00
Jonas Schnelli
73351c3686
[REST] /rest/block response with full tx details
...
- rest block request returns full unfolded tx details
- /rest/block/notxdetails/<HASH> returns block where transactions are only represented by its hash
2014-12-09 16:05:50 +01:00
Gregory Maxwell
0a94661e8d
Disable SSLv3 (in favor of TLS) for the RPC client and server.
...
TLS is subject to downgrade attacks when SSLv3 is available, and
SSLv3 has vulnerabilities.
The popular solution is to disable SSLv3. On the web this breaks
some tiny number of very old clients. While Bitcoin RPC shouldn't
be exposed to the open Internet, it also shouldn't be exposed to
really old SSL implementations, so it shouldn't be a major issue
for us to disable SSLv3.
There is more information on the downgrade attacks and disabling
SSLv3 at https://disablessl3.com/ .
Rebased-From: 683dc4009b
2014-12-09 15:22:28 +01:00
Pieter Wuille
bb424e4447
Limit the number of new addressses to accumulate
...
Rebased-From: 12a49cac0a
2014-12-09 15:17:21 +01:00
Wladimir J. van der Laan
7f76dda903
Merge pull request #5216
...
5ec654b
[Qt] update paymentserver license and cleanup ordering (Philip Kaufmann)
4333e26
[Qt] add BIP70 DoS protection test (Philip Kaufmann)
31f8494
[Qt] add BIP70 payment request size DoS protection for URIs (Philip Kaufmann)
2284ccb
[Qt] remove dup lock that is done in SetAddressBook() (Philip Kaufmann)
1ec753f
[Qt] ensure socket is set to NULL in PaymentServer::ipcSendCommandLine (Philip Kaufmann)
814429d
[Qt] add BIP70/BIP71 constants for all messages and mime types (Philip Kaufmann)
b82695b
[Qt] make PaymentServer::ipcParseCommandLine void (Philip Kaufmann)
2014-12-09 10:16:16 +01:00
Wladimir J. van der Laan
4f85383cb3
Merge pull request #5409
...
65b0328
newlines in strings are invalid JSON (Ryan X. Charles)
2014-12-09 10:07:35 +01:00
Matt Corallo
7fd6219af7
Make CTxMemPool::remove more effecient by avoiding recursion
2014-12-08 14:09:58 -08:00
Matt Corallo
b7b4318f3a
Make CTxMemPool::check more thourough by using CheckInputs
2014-12-08 14:05:42 -08:00
Matt Corallo
723d12c098
Remove txn which are invalidated by coinbase maturity during reorg
2014-12-08 14:05:42 -08:00
Matt Corallo
868d041622
Remove coinbase-dependant transactions during reorg.
...
This still leaves transactions in mempool that are potentially
invalid if the maturity period has been reorged out of, but at
least they're not missing inputs entirely.
2014-12-08 14:05:42 -08:00
Philip Kaufmann
5ec654b8ce
[Qt] update paymentserver license and cleanup ordering
2014-12-08 16:09:02 +01:00
Philip Kaufmann
4333e26c8e
[Qt] add BIP70 DoS protection test
...
- this test required to make readPaymentRequestFromFile() public in order
to be able to is it in paymentservertests.cpp
2014-12-08 16:09:01 +01:00
Philip Kaufmann
31f84944a5
[Qt] add BIP70 payment request size DoS protection for URIs
...
- current code only does this for payment request files, which are
used on Mac
- also rename readPaymentRequest to readPaymentRequestFromFile, so it's
obvious that function only handles payment request files and not URIs
- small logging changes in readPaymentRequestFromFile
2014-12-08 16:08:59 +01:00
Philip Kaufmann
2284ccbd13
[Qt] remove dup lock that is done in SetAddressBook()
2014-12-08 16:08:59 +01:00
Philip Kaufmann
1ec753f734
[Qt] ensure socket is set to NULL in PaymentServer::ipcSendCommandLine
2014-12-08 16:08:58 +01:00
Philip Kaufmann
814429dc72
[Qt] add BIP70/BIP71 constants for all messages and mime types
...
- also rename current ones to match the new ones
- remove constant from guiconstant.h and add it to paymentserver.cpp
2014-12-08 16:08:58 +01:00
Philip Kaufmann
b82695b89f
[Qt] make PaymentServer::ipcParseCommandLine void
...
- the function only returned true, so make it void
- add a comment about payment request network detection
2014-12-08 16:08:57 +01:00
Wladimir J. van der Laan
4b5b263ac0
Merge pull request #5434
...
683dc40
Disable SSLv3 (in favor of TLS) for the RPC client and server. (Gregory Maxwell)
2014-12-08 13:31:13 +01:00
vertoe
8003eb484e
Fix internal wallet miner.
2014-12-06 22:56:38 +01:00
Pavel Janík
a26bf478ea
Add a new test for FormatParagraph (string longer than the default width).
2014-12-06 22:49:07 +01:00
Pavel Janík
83b81f6c8a
Format paragraphs properly - count the space between words.
2014-12-06 21:26:52 +01:00
vertoe
6723c9ea10
Update private key versions.
2014-12-06 16:42:40 +01:00
Gregory Maxwell
683dc4009b
Disable SSLv3 (in favor of TLS) for the RPC client and server.
...
TLS is subject to downgrade attacks when SSLv3 is available, and
SSLv3 has vulnerabilities.
The popular solution is to disable SSLv3. On the web this breaks
some tiny number of very old clients. While Bitcoin RPC shouldn't
be exposed to the open Internet, it also shouldn't be exposed to
really old SSL implementations, so it shouldn't be a major issue
for us to disable SSLv3.
There is more information on the downgrade attacks and disabling
SSLv3 at https://disablessl3.com/ .
2014-12-06 07:08:02 -08:00
Pavel Janík
4be639eaec
Use RPC_INVALID_PARAMETER instead of RPC_WALLET_ERROR for invalid amount.
...
No return at the end of void function.
2014-12-05 17:22:06 +01:00
Wladimir J. van der Laan
b5fa132329
Merge pull request #5181
...
afd4b94
Move CMerkleBlock and CPartialMerkleTree to their own file (Matt Corallo)
2014-12-05 16:50:48 +01:00
Pavel Janík
4c83c0e7c8
Normalize header guard of script_error.h
2014-12-05 12:01:13 +01:00
Wladimir J. van der Laan
dbf1dc239e
Merge pull request #5398
...
8a20cd3
prioritisetransaction RPC: Restore compatibility with existing implementations by using satoshis for fee offset rather than BTC (Luke Dashjr)
2014-12-05 11:41:06 +01:00
Wladimir J. van der Laan
800458eddd
Merge pull request #5408
...
35e408f
Regard connection failures as attempt for addrman (Wladimir J. van der Laan)
2014-12-05 11:39:18 +01:00
Wladimir J. van der Laan
7a88e3b0fc
Merge pull request #5425
...
87bddb7
Squashed 'src/secp256k1/' changes from ad2028f..b0210a9 (Pieter Wuille)
ffe3291
Remove gmp dependency and doc mentions (Pieter Wuille)
2014-12-05 11:30:26 +01:00
Wladimir J. van der Laan
7d42644dda
Merge pull request #5207
...
8487790
bitcoin-tx: Add the "-txid" option. Also add the hex-encoded transaction to the JSON output as the "hex" property. (mruddy)
2014-12-05 11:24:39 +01:00
Wladimir J. van der Laan
c78a18087f
Merge pull request #5308
...
60d1ecd
change nSubsidy's type from int64_t to CAmount (HarryWu)
2014-12-05 11:11:24 +01:00
Wladimir J. van der Laan
68705996a9
Merge pull request #5419
...
12a49ca
Limit the number of new addressses to accumulate (Pieter Wuille)
2014-12-05 11:01:19 +01:00
Matt Corallo
afd4b94b6d
Move CMerkleBlock and CPartialMerkleTree to their own file
2014-12-05 01:57:40 -08:00
vertoe
601457c2fe
Change Darkcoin units to DRK and added duffs.
2014-12-05 10:09:38 +01:00
vertoe
4f95ea2ada
Reset testnet (v4).
2014-12-05 09:25:30 +01:00
vertoe
4fca7b4677
Update branding to reflect this is a Darkcoin client.
2014-12-04 23:32:21 +01:00
vertoe
dcf8cb6cb5
Define regression test genesis.
2014-12-04 22:24:59 +01:00
Pieter Wuille
0dcfb91d56
Update libsecp256k1
2014-12-04 19:17:07 +01:00
Pieter Wuille
87bddb7a3a
Squashed 'src/secp256k1/' changes from ad2028f..b0210a9
...
b0210a9 Merge pull request #135
ee3eb4b Fix a memory leak and add a number of small tests.
4d879a3 Merge pull request #134
d5e8362 Merge pull request #127
7b92cf6 Merge pull request #132
0bf70a5 Merge pull request #133
29ae131 Make scalar_add_bit test's overflow detection exact
9048def Avoid undefined shift behaviour
efb7d4b Use constant-time conditional moves instead of byte slicing
d220062 Merge pull request #131
82f9254 Fix typo
601ca04 Merge pull request #129
35399e0 Bugfix: b is restricted, not r
c35ff1e Convert lambda splitter to pure scalar code.
cc604e9 Avoid division when decomposing scalars
ff8746d Add secp256k1_scalar_mul_shift_var
bd313f7 Merge pull request #119
276f987 Merge pull request #124
25d125e Merge pull request #126
24b3c65 Add a test case for ECDSA recomputing infinity
32600e5 Add a test for r >= order signature handling
4d4eeea Make secp256k1_fe_mul_inner use the r != property
be82e92 Require that r and b are different for field multiplication.
597128d Make num optional
659b554 Make constant initializers independent from num
0af5b47 Merge pull request #120
e2e8a36 Merge pull request #117
c76be9e Remove unused num functions
4285a98 Move lambda-splitting code to scalar.
f24041d Switch all EC/ECDSA logic from num to scalar
6794be6 Add scalar splitting functions
d1502eb Add secp256k1_scalar_inverse_var which delegates to GMP
b5c9ee7 Make test_point_times_order test meaningful again
0b73059 Switch wnaf splitting from num-based to scalar-based
1e6c77c Generalize secp256k1_scalar_get_bits
5213207 Add secp256k1_scalar_add_bit
3c0ae43 Merge pull request #122
6e05287 Do signature recovery/verification with 4 possible recid case
e3d692f Explain why no y=0 check is necessary for doubling
f7dc1c6 Optimize doubling: secp256k1 has no y=0 point
666d3b5 Merge pull request #121
2a54f9b Correct typo in comment
9d64145 Merge pull request #114
99f0728 Fix secp256k1_num_set_bin handling of 0
d907ebc Add bounds checking to field element setters
bb2cd94 Merge pull request #116
665775b Don't split the g factor when not using endomorphism
9431d6b Merge pull request #115
e2274c5 build: osx: attempt to work with homebrew keg-only packages
git-subtree-dir: src/secp256k1
git-subtree-split: b0210a95da433e048a11d298efbcc14eb423c95f
2014-12-04 19:17:07 +01:00
Wladimir J. van der Laan
9ddc8c63ab
Merge pull request #5394
...
307f7d4
Report script evaluation failures in log and reject messages (Pieter Wuille)
2014-12-04 16:43:35 +01:00
vertoe
f8105535fe
Fix DGW v1 and v2 architecture issues.
2014-12-04 14:33:48 +01:00
vertoe
5a77c79d24
Fix testnet checkpoint.
2014-12-04 13:21:33 +01:00
Pieter Wuille
12a49cac0a
Limit the number of new addressses to accumulate
2014-12-04 13:19:16 +01:00
vertoe
3d65ce730c
Update difficulty retarget to KGW and DGWv3.
2014-12-04 12:47:48 +01:00
vertoe
a63a38bed1
Update strings.
2014-12-04 12:47:16 +01:00
Wladimir J. van der Laan
a0417b8cc8
Merge pull request #5306
...
d227011
MOVEONLY: core/ -> primitives/ (Luke Dashjr)
2014-12-03 12:05:43 +01:00
Luke Dashjr
d227011184
MOVEONLY: core/ -> primitives/
2014-12-03 10:52:58 +00:00
Wladimir J. van der Laan
7eb0667384
Merge pull request #5403
...
c5b390b
Make comments in main an init doxygen compatible (Michael Ford)
2014-12-03 10:48:53 +01:00
Wladimir J. van der Laan
133344208c
Merge pull request #5400
...
32b93a1
Extra explanation for getchaintips (Pieter Wuille)
2014-12-03 10:17:13 +01:00
Pieter Wuille
307f7d48d4
Report script evaluation failures in log and reject messages
2014-12-02 22:05:03 +01:00
Ryan X. Charles
65b03282c9
newlines in strings are invalid JSON
...
Although script_valid.json and script_invalid.json are loaded correctly by the
JSON interpreter used by bitcoin core, these same files are often used by other
libraries and do not necessarily load correctly due to the fact that newlines
contained inside strings are not valid and must instead use the escape
character \n. The files tx_valid.json and tx_invalid.json handle this
correctly, so I've changed the formatting in script_valid.json and
script_invalid.json to mirror those files.
2014-12-02 10:02:44 -08:00
Pieter Wuille
0286fe5b3b
Merge pull request #5401
...
362001c
Move CHECKMULTISIG order tests out of automatically generated block (Pieter Wuille)
f67a9ce
Use deterministically generated script tests (Pieter Wuille)
2014-12-02 18:55:51 +01:00
Gavin Andresen
1c7e09f0b9
Merge pull request #5369
...
b2d0162
Test resurrecting memory pool transactions during chain re-org (Gavin Andresen)
3dd8ed7
Delay writing block indexes in invalidate/reconsider (Pieter Wuille)
798faec
Add 'invalidateblock' and 'reconsiderblock' RPC commands. (Pieter Wuille)
2014-12-02 11:59:41 -05:00
Wladimir J. van der Laan
35e408f8a4
Regard connection failures as attempt for addrman
...
This avoids connecting to them again too soon in ThreadOpenConnections.
Make an exception for connection failures to the proxy as these
shouldn't affect the status of specific nodes.
2014-12-02 17:54:16 +01:00
Wladimir J. van der Laan
fec0d100d5
Merge pull request #5376
...
8a5c951
[REST] make selection of output-format mandatory, support dot url syntax (Jonas Schnelli)
2014-12-02 15:34:43 +01:00
vertoe
311ee3ee74
Prepare KGW and DGWv3 implementation.
2014-12-02 12:43:06 +01:00
vertoe
41f1535135
Bump client and wallet version.
2014-12-02 09:48:47 +01:00
vertoe
e992aee09d
Update subsidity function.
2014-12-02 09:16:52 +01:00
Michael Ford
c5b390b6b9
Make comments in main an init doxygen compatible
...
Fix typos where appropriate
Update license/copyright
2014-12-02 15:50:58 +08:00
Pavel Janík
b93173dee9
Move SendMoney() to rpcwallet.cpp.
2014-12-02 08:32:10 +01:00
Pieter Wuille
362001c19f
Move CHECKMULTISIG order tests out of automatically generated block
2014-12-01 21:37:20 +01:00
Pieter Wuille
f67a9ce0dc
Use deterministically generated script tests
...
Now that signing is deterministic, we can require exact correspondence between the
automatically generated tests and the ones read from JSON. Do this, and update
the tests to those deterministic versions. Note that some flag changes weren't
correctly applied before.
2014-12-01 21:29:02 +01:00
Pieter Wuille
32b93a1bc2
Extra explanation for getchaintips
2014-12-01 20:48:50 +01:00
Luke Dashjr
8a20cd3c51
prioritisetransaction RPC: Restore compatibility with existing implementations by using satoshis for fee offset rather than BTC
2014-12-01 14:18:07 +00:00
Wladimir J. van der Laan
f0877f8b62
Merge pull request #5227
...
4cdaa95
Resize after succesful result (Pieter Wuille)
9d8604f
Header define style cleanups (Pieter Wuille)
a53fd41
Deterministic signing (Pieter Wuille)
3060e36
Add the RFC6979 PRNG (Pieter Wuille)
a8f5087
Add HMAC-SHA256 (Pieter Wuille)
36fa4a7
Split up crypto/sha2 (Pieter Wuille)
2014-12-01 14:57:58 +01:00
Wladimir J. van der Laan
89151d9f29
Merge pull request #5390
...
43422a0
[Qt] Fix wallet-lock in CWallet::GetAccountAddresses(..) (Cozz Lovan)
2014-12-01 12:44:26 +01:00
Wladimir J. van der Laan
0ddf4416cc
Merge pull request #5386
...
1b91be4
Report status of chain tips (Pieter Wuille)
2014-12-01 11:49:35 +01:00
Wladimir J. van der Laan
b248a38aa5
Merge pull request #5388
...
1cf23f6
Update the intent on SI-style separators. (21E14)
2014-12-01 10:17:58 +01:00
Cozz Lovan
43422a0121
[Qt] Fix wallet-lock in CWallet::GetAccountAddresses(..)
2014-11-29 12:51:36 +01:00
vertoe
0e82f2f91c
Add full X11 implementation and block hashing
2014-11-29 12:29:14 +01:00
vertoe
f164aeaadc
Add sph sources to prepare X11 integration
2014-11-29 11:07:09 +01:00
vertoe
eb2afb2630
Add sph type definition to prepare X11 integration
2014-11-29 10:42:42 +01:00
Pieter Wuille
4cdaa95a20
Resize after succesful result
2014-11-28 21:16:51 +01:00
21E14
1cf23f6c50
Update the intent on SI-style separators.
2014-11-28 10:34:25 -05:00
Pieter Wuille
5270817180
Merge pull request #5365
...
3a05ba1
Fix typo in doxygen comment. (Pavel Janík)
2014-11-28 16:22:25 +01:00
vertoe
d5b70d0da9
Update checkpoints
2014-11-28 11:53:08 +01:00
Wladimir J. van der Laan
d7c8a830c4
Merge pull request #5316
...
f86a24b
Move `setmocktime` to hidden category (Wladimir J. van der Laan)
bd9aebf
Introduce a hidden category (Pieter Wuille)
0dd06b2
Delay writing block indexes in invalidate/reconsider (Pieter Wuille)
9b0a8d3
Add 'invalidateblock' and 'reconsiderblock' RPC commands. (Pieter Wuille)
2014-11-28 11:19:15 +01:00
Wladimir J. van der Laan
f86a24b368
Move setmocktime
to hidden category
...
Another testing-only potential footgun command.
2014-11-28 10:57:14 +01:00
vertoe
9279744a64
Update address versions and genesis block
2014-11-28 10:56:02 +01:00
Wladimir J. van der Laan
631e698bb7
Merge pull request #5374
...
a53d16a
Use complete path to include bitcoin-config.h. (Pavel Janík)
2014-11-28 09:46:39 +01:00
vertoe
b0ad85593f
Update dns seeds
2014-11-27 18:56:59 +01:00
vertoe
dcdbfbcfe4
Update protocol versions
2014-11-27 18:29:18 +01:00
vertoe
aedda3b379
Change port to 9999 and rpcport to 9998
2014-11-27 18:09:11 +01:00
vertoe
5ba6751be7
Change , .conf and .pid files to darkcoin
2014-11-27 17:26:22 +01:00
Jonas Schnelli
8a5c9513ba
[REST] make selection of output-format mandatory, support dot url syntax
...
1. Remove the default format (binary) because `rest/block/<hash>/Hex` would end up delivering binary data.
2. List available formats when chosen format was not found (reduces need for documentation)
3. Change url syntax to dot extension like format chosing (like `rest/tx/<hash>.json`
2014-11-27 14:06:45 +01:00
Pieter Wuille
1b91be49f5
Report status of chain tips
2014-11-27 11:50:14 +01:00
Pieter Wuille
57be955ba0
Remove -printblock, -printblocktree, and -printblockindex
2014-11-27 09:50:20 +01:00
Pieter Wuille
bd9aebf19d
Introduce a hidden category
2014-11-26 16:36:26 +01:00
Pieter Wuille
0dd06b2515
Delay writing block indexes in invalidate/reconsider
2014-11-26 16:36:26 +01:00
Pieter Wuille
9b0a8d3152
Add 'invalidateblock' and 'reconsiderblock' RPC commands.
...
These can be used for testing reorganizations or for manual intervention in case of
chain forks.
2014-11-26 16:36:25 +01:00
Wladimir J. van der Laan
9ff0bc9beb
Merge pull request #5158
...
9ec75c5
Add a locking mechanism to IsInitialBlockDownload to ensure it never goes from false to true. (Ruben Dario Ponticelli)
a2d0fc6
Fix IsInitialBlockDownload which was broken by headers first. (Ruben Dario Ponticelli)
2014-11-26 15:09:03 +01:00
Wladimir J. van der Laan
b031137977
Merge pull request #5273
...
cd4d3f1
Win32: change buffer size for gethotsname in Discover() (Philip Kaufmann)
8fa0494
Win32: log addresses found in Discover() calls (Philip Kaufmann)
2014-11-26 14:36:50 +01:00
Wladimir J. van der Laan
108b19f7ef
Merge pull request #5326
...
5dc713b
[REST] set REST API behind "-rest" option (Jonas Schnelli)
78bdc81
[REST] give an appropriate response in warmup phase (Jonas Schnelli)
210eba9
[REST] fix headersonly flag for BINARY responses (Jonas Schnelli)
2014-11-26 14:30:11 +01:00
Jonas Schnelli
5dc713bfc7
[REST] set REST API behind "-rest" option
2014-11-26 13:53:27 +01:00
Jonas Schnelli
78bdc8103f
[REST] give an appropriate response in warmup phase
2014-11-26 13:51:02 +01:00
Wladimir J. van der Laan
8ba38aba42
qt: Update translations from transifex
2014-11-26 13:47:49 +01:00
Jonas Schnelli
210eba9fdb
[REST] fix headersonly flag for BINARY responses
2014-11-26 13:42:58 +01:00
Wladimir J. van der Laan
53a87c0355
Merge pull request #5321
...
34559c7
Make PruneBlockIndexCandidates safer (Pieter Wuille)
cca48f6
Reset setBlockIndexCandidates once block index db loaded (21E14)
2014-11-26 13:31:03 +01:00
Wladimir J. van der Laan
4baa9f0c9b
Merge pull request #5323
...
a328dd6
[Qt] small changes to sendcoinsdialog (Philip Kaufmann)
2014-11-26 13:00:50 +01:00
Wladimir J. van der Laan
124b4895b8
Merge pull request #5209
...
9b1627d
[Wallet] Reduce minTxFee for transaction creation to 1000 satoshis (Cozz Lovan)
2014-11-26 10:58:20 +01:00
Wladimir J. van der Laan
e6751ca68a
Merge pull request #5361
...
3223179
libbitcoinconsensus: don't require any global constructors (Cory Fields)
2014-11-26 10:44:42 +01:00
Pavel Janík
a53d16ac0c
Use complete path to include bitcoin-config.h.
2014-11-26 10:37:49 +01:00
Wladimir J. van der Laan
70f9e33fa0
Merge pull request #5340
...
c8ed613
Include missing config/bitcoin-config.h. (Pavel Janík)
494f6e7
Check for strnlen and provide it if it is not found. (Pavel Janík)
2014-11-26 09:51:05 +01:00
Pavel Janík
c8ed6130a4
Include missing config/bitcoin-config.h.
2014-11-26 08:19:07 +01:00
Philip Kaufmann
a328dd60a7
[Qt] small changes to sendcoinsdialog
...
- add newly added variables to the constructor init
- move an already existing bool also to constructor init
- move a connect call to setClientModel and add a NULL pointer check
2014-11-25 17:00:02 +01:00
Wladimir J. van der Laan
ac0b2393a4
Merge pull request #5351
...
3d0a1ce
Process help and version arguments before datadir. (Pavel Janík)
2014-11-25 14:44:30 +01:00
Pieter Wuille
3dd8ed72e5
Delay writing block indexes in invalidate/reconsider
2014-11-25 12:33:43 +01:00
Pieter Wuille
798faec3ea
Add 'invalidateblock' and 'reconsiderblock' RPC commands.
...
These can be used for testing reorganizations or for manual intervention in case of
chain forks.
2014-11-25 12:32:51 +01:00
Wladimir J. van der Laan
397b9011c9
Merge pull request #5241
...
a206950
Introduce separate flushing modes (Pieter Wuille)
51ce901
Improve chainstate/blockindex disk writing policy (Pieter Wuille)
2014-11-25 12:18:00 +01:00
Pavel Janík
3a05ba1bfc
Fix typo in doxygen comment.
2014-11-25 08:18:33 +01:00
Cory Fields
322317951f
libbitcoinconsensus: don't require any global constructors
...
These static objects are only used in once place, so declare them there instead.
2014-11-24 15:23:29 -05:00
Gregory Maxwell
cd5164aba2
Make -proxy set all network types, avoiding a connect leak.
...
Previously -proxy was not setting the proxy for IsLimited networks, so
if you set your configuration to be onlynet=tor you wouldn't get an
IPv4 proxy set.
The payment protocol gets its proxy configuration from the IPv4 proxy,
and so it would experience a connection leak.
This addresses issue #5355 and also clears up a cosmetic bug where
getinfo proxy output shows nothing when onlynet=tor is set.
Conflicts:
src/init.cpp
Rebased-From: 3c77714134
Github-Issue: #5358
2014-11-24 15:33:46 +01:00
Wladimir J. van der Laan
6f9e67aca7
Merge pull request #5358
...
3c77714
Make -proxy set all network types, avoiding a connect leak. (Gregory Maxwell)
2014-11-24 15:30:31 +01:00
Wladimir J. van der Laan
1ee685f984
Merge pull request #5154
...
730b1ed
Check pindexBestForkBase for null (21E14)
2014-11-24 15:29:52 +01:00
Jonas Schnelli
c5a2282855
[Qt, OSX] fix Qt4.8 compatibility with QProgressBar issue
...
Rebased-From: 7f33d2cebfde99ded12c711ef6bd77c91725cfb8
Github-Issue: #5344
2014-11-24 15:26:58 +01:00
Pieter Wuille
a206950016
Introduce separate flushing modes
2014-11-24 15:15:41 +01:00
Pieter Wuille
51ce901aa3
Improve chainstate/blockindex disk writing policy
...
There are 3 pieces of data that are maintained on disk. The actual block
and undo data, the block index (which can refer to positions on disk),
and the chainstate (which refers to the best block hash).
Earlier, there was no guarantee that blocks were written to disk before
block index entries referring to them were written. This commit introduces
dirty flags for block index data, and delays writing entries until the actual
block data is flushed.
With this stricter ordering in writes, it is now safe to not always flush
after every block, so there is no need for the IsInitialBlockDownload()
check there - instead we just write whenever enough time has passed or
the cache size grows too large. Also updating the wallet's best known block
is delayed until this is done, otherwise the wallet may end up referring to an
unknown block.
In addition, only do a write inside the block processing loop if necessary
(because of cache size exceeded). Otherwise, move the writing to a point
after processing is done, after relaying.
2014-11-24 15:15:40 +01:00
Wladimir J. van der Laan
f24bcce2ac
Merge pull request #1816
...
b867e40
CreateNewBlock: Stick height in coinbase so we pass template sanity check (Luke Dashjr)
60755db
submitblock: Check for duplicate submissions explicitly (Luke Dashjr)
bc6cb41
QA RPC tests: Add tests block block proposals (Luke Dashjr)
9765a50
Implement BIP 23 Block Proposal (Luke Dashjr)
3dcbb9b
Abstract DecodeHexBlk and BIP22ValidationResult functions out of submitblock (Luke Dashjr)
132ea9b
miner_tests: Disable checkpoints so they don't fail the subsidy-change test (Luke Dashjr)
df08a62
TestBlockValidity function for CBlock proposals (used by CreateNewBlock) (Luke Dashjr)
4ea1be7
CreateNewBlock and miner_tests: Also check generated template is valid by CheckBlockHeader, ContextualCheckBlockHeader, CheckBlock, and ContextualCheckBlock (Luke Dashjr)
a48f2d6
Abstract context-dependent block checking from acceptance (Luke Dashjr)
2014-11-24 14:43:10 +01:00
Wladimir J. van der Laan
6582f323f0
Merge pull request #5224
...
f321d6b
Add key generation/verification to ECC sanity check (Pieter Wuille)
d0c41a7
Add sanity check after key generation (Pieter Wuille)
2014-11-24 14:39:25 +01:00
Wladimir J. van der Laan
dfc8e1432a
Merge pull request #5309
...
4574248
[Qt] minor ordering cleanup after new fee selection (Philip Kaufmann)
a01fa30
minor style cleanup after HTTP rest interface merge (Philip Kaufmann)
2014-11-24 14:35:50 +01:00
Pavel Janík
494f6e7d35
Check for strnlen and provide it if it is not found.
2014-11-24 10:28:24 +01:00
Gregory Maxwell
3c77714134
Make -proxy set all network types, avoiding a connect leak.
...
Previously -proxy was not setting the proxy for IsLimited networks, so
if you set your configuration to be onlynet=tor you wouldn't get an
IPv4 proxy set.
The payment protocol gets its proxy configuration from the IPv4 proxy,
and so it would experience a connection leak.
This addresses issue #5355 and also clears up a cosmetic bug where
getinfo proxy output shows nothing when onlynet=tor is set.
2014-11-23 15:17:11 -08:00
dexX7
7357893396
Prioritize and display -testsafemode status in UI
...
Like in a real world situation, a safe mode test should also be visible in the
UI. A test of safe mode is furthermore mostly relevant for developers, so it
should not be overwritten by a warning about a pre-release test build.
2014-11-23 13:10:31 +01:00
Pieter Wuille
f321d6bfff
Add key generation/verification to ECC sanity check
2014-11-23 10:47:39 +01:00
Pieter Wuille
d0c41a7350
Add sanity check after key generation
...
Add a sanity check to prevent cosmic rays from flipping a bit in the
generated public key, or bugs in the elliptic curve code. This is
simply done by signing a (randomized) message, and verifying the
result.
2014-11-23 10:47:39 +01:00
Pavel Janík
e0535e15ab
Remove misleading comment about testnet's message string.
2014-11-22 22:22:12 +01:00
Pavel Janík
3d0a1ce193
Process help and version arguments before datadir.
2014-11-22 20:46:11 +01:00
21E14
730b1ed1a0
Check pindexBestForkBase for null
2014-11-22 00:12:41 -05:00
Philip Kaufmann
1b2600a13a
Change MIT/X11 to MIT in license displayed in the program
2014-11-21 17:03:59 +01:00
Michael Ford
fa94b9d562
Convert remaining comments in /src to doxygen format
...
- Update comments in checkpoints to be doxygen compatible
- Update comments in checkqueue to be doxygen compatible
- Update coins to be doxygen compatible
- Fix comment typo in crypter.h
- Update licenses/copyright dates
Closes #5325 #5184 #5183 #5182
2014-11-21 14:44:21 +01:00
Wladimir J. van der Laan
f2ada138c2
Merge pull request #5170
...
092b58d
CBlockIndex::GetBlockWork() + GetProofIncrement(nBits) -> GetBlockProof(CBlockIndex) (jtimon)
22c4272
MOVEONLY: Move void UpdateTime() from pow.o to miner.o (plus fix include main.h -> chain.h) (jtimon)
2014-11-21 14:33:22 +01:00
Wladimir J. van der Laan
ca6fb4e885
Merge pull request #5247
...
ca81587
Test the exact order of CHECKMULTISIG sig/pubkey evaluation (Peter Todd)
98b135f
Make STRICTENC invalid pubkeys fail the script rather than the opcode. (Pieter Wuille)
2014-11-21 14:21:56 +01:00
Wladimir J. van der Laan
cb83af9937
Merge pull request #5318
...
77c38bb
Truthier error message when rpcpassword is missing (Glenn Willen)
2014-11-21 13:53:57 +01:00
Wladimir J. van der Laan
4a106eeb33
qt: English translation update
2014-11-21 10:24:30 +01:00
Wladimir J. van der Laan
db5308f447
Merge pull request #5322
...
aabe61c
[Qt] explicitly call proxy in GUI settings SOCKS5 proxy (Philip Kaufmann)
2014-11-21 10:21:56 +01:00
Cory Fields
f618577029
build: fix link error on some platforms. Fixes #5235
...
Some users may have libtool libs (.la) installed in their linker search paths.
In this case, using -static-libtool-libs would try to link in .a's instead of
shared libs. That would be harmless unless the .a was built in a way that
would break linking, like non-fpic.
What we really want is "-static" here. Despite its name, it's actually less
aggressive than -static-libtool-libs. It causes only internal libs to be linked
statically (libbitcoinconsensus is the one were'a after).
2014-11-20 13:45:14 -05:00
Pieter Wuille
9d8604f36a
Header define style cleanups
2014-11-20 17:22:06 +01:00
Pieter Wuille
a53fd41485
Deterministic signing
2014-11-20 17:22:06 +01:00
Pieter Wuille
3060e36098
Add the RFC6979 PRNG
2014-11-20 17:22:06 +01:00
Pieter Wuille
a8f5087e53
Add HMAC-SHA256
2014-11-20 17:22:06 +01:00
Pieter Wuille
36fa4a78ac
Split up crypto/sha2
2014-11-20 17:22:02 +01:00
Luke Dashjr
b867e409e5
CreateNewBlock: Stick height in coinbase so we pass template sanity check
2014-11-20 15:32:49 +00:00
Wladimir J. van der Laan
5c4dffd188
Merge pull request #5270
...
57425a2
Check block header before accepting it. (Daniel Kraft)
2014-11-20 15:41:58 +01:00
Peter Todd
ca8158719b
Test the exact order of CHECKMULTISIG sig/pubkey evaluation
...
Possible with STRICTENC
2014-11-20 15:29:28 +01:00
Pieter Wuille
98b135f97f
Make STRICTENC invalid pubkeys fail the script rather than the opcode.
...
This turns STRICTENC turn into a softforking-safe change (even though it
is not intended as a consensus rule), and as a result guarantee that using
it for mempool validation only results in consensus-valid transactions in
the mempool.
2014-11-20 15:29:26 +01:00
Pieter Wuille
3ba5ebc065
Merge pull request #5000
...
0391423
Discourage NOPs reserved for soft-fork upgrades (Peter Todd)
2014-11-20 15:27:39 +01:00
Wladimir J. van der Laan
cf9c4887f1
Merge pull request #5324
...
72fb3d2
Update comments in src/rpc* to be doxygen compatible (Michael Ford)
2014-11-20 14:40:42 +01:00
Wladimir J. van der Laan
5c6b384502
Merge pull request #5320
...
e0a25c5
qt: Make askpassphrase dialog behave more sanely (Wladimir J. van der Laan)
2014-11-20 13:48:38 +01:00
Philip Kaufmann
aabe61cb37
[Qt] explicitly call proxy in GUI settings SOCKS5 proxy
...
- to ensure a consistent wording between core and GUI
2014-11-20 12:45:38 +01:00
Pieter Wuille
34559c7c73
Make PruneBlockIndexCandidates safer
2014-11-20 12:43:50 +01:00
Philip Kaufmann
4574248f9f
[Qt] minor ordering cleanup after new fee selection
2014-11-20 12:29:52 +01:00
Philip Kaufmann
a01fa3035f
minor style cleanup after HTTP rest interface merge
...
- no code changes
2014-11-20 12:29:19 +01:00
Wladimir J. van der Laan
e0a25c54eb
qt: Make askpassphrase dialog behave more sanely
...
Set minimum sizes appropriately, and make sure that they
are enforced. Replaces #5226 .
2014-11-20 12:28:34 +01:00
Daniel Kraft
57425a2425
Check block header before accepting it.
...
Previously, AcceptBlockHeader did not check the header (in particular
PoW). This made the client accept invalid-PoW-headers from peers in
headers-first sync.
2014-11-20 08:28:19 +01:00
Cory Fields
269efa30ed
build: add quick consensus lib tests
...
They should be hooked up in other places as well, but this is a start.
2014-11-19 22:31:10 -05:00
Cory Fields
cdd36c6c5c
build: add --with-libs so that libs are optional
2014-11-19 22:31:10 -05:00
Cory Fields
2cf5f16c25
build: add libbitcoinconsensus files and hook up the lib build
...
Credit BlueMatt for libbitcoinsonsensus.h/cpp
2014-11-19 22:31:10 -05:00
Cory Fields
e0077de5de
build: make a distinction between static app ldflags and static lib ldflags
...
For windows builds, exe's are always static, but libs should still conform to
--enabled-shared and --enable-static.
2014-11-19 22:08:27 -05:00
Michael Ford
72fb3d295a
Update comments in src/rpc* to be doxygen compatible
2014-11-20 10:19:39 +08:00
Luke Dashjr
60755dbf76
submitblock: Check for duplicate submissions explicitly
2014-11-20 00:15:17 +00:00
Luke Dashjr
9765a50cbd
Implement BIP 23 Block Proposal
2014-11-20 00:15:16 +00:00
Glenn Willen
77c38bb5cc
Truthier error message when rpcpassword is missing
2014-11-19 15:34:36 -08:00
Cozz Lovan
c1c9d5b415
[Qt] Add Smartfee to GUI
2014-11-19 16:04:53 +01:00
Cozz Lovan
e7876b2979
[Wallet] Prevent user from paying a non-sense fee
2014-11-19 16:04:53 +01:00
Cozz Lovan
ed3e5e468c
[Wallet] Add global boolean whether to pay at least the custom fee (default=true)
2014-11-19 16:04:53 +01:00
Cozz Lovan
0ed9675be4
[Wallet] Add global boolean whether to send free transactions (default=true)
2014-11-19 16:04:53 +01:00
Wladimir J. van der Laan
18832ff8e1
Merge pull request #5313
...
230f7a8
Remove unused ecwrapper code (Pieter Wuille)
2014-11-19 15:24:01 +01:00
Wladimir J. van der Laan
e587ecd8a6
Merge pull request #5296
...
0ceab00
[Qt, OSX] move QProgressBarMac to guiutil.h (Jonas Schnelli)
6093aa1
[Qt, OSX] QProgressBar CPU-Issue workaround (Jonas Schnelli)
2014-11-19 14:58:39 +01:00
Jonas Schnelli
0ceab00d16
[Qt, OSX] move QProgressBarMac to guiutil.h
2014-11-19 14:08:56 +01:00
Pieter Wuille
230f7a833d
Remove unused ecwrapper code
2014-11-19 12:29:41 +01:00
Wladimir J. van der Laan
271061242b
Merge pull request #5220
...
f9e40fb
revert part of 9eda1620b (Cory Fields)
4300876
build: secp256k1 as a subdir, since it's required (Cory Fields)
0dc8613
build: fixup configure to not export anything (Cory Fields)
54566de
depends: quit exporting in config.site (Cory Fields)
ff1e5ba
depends: add gmp package (Cory Fields)
cf61b54
Don't use bashisms in configure (Pieter Wuille)
dffb8f8
Use libsecp256k1 in key.cpp (Pieter Wuille)
4c97c64
Do not use EC code in global constructors (Pieter Wuille)
07a9901
Always build and link libsecp256k1 (Pieter Wuille)
d48555b
Squashed 'src/secp256k1/' content from commit ad2028f (Pieter Wuille)
7a7e109
Delete src/secp256k1 before subtree import (Pieter Wuille)
2014-11-19 12:02:29 +01:00
Wladimir J. van der Laan
5716808ca7
Merge pull request #5300
...
a7f2941
[Qt, OSX] fix usage of osx 10.8+ user notification center (Jonas Schnelli)
2014-11-19 10:51:59 +01:00
HarryWu
60d1ecd378
change nSubsidy's type from int64_t to CAmount
2014-11-19 14:01:18 +08:00
Gavin Andresen
fd3777b0b2
Merge pull request #5280
...
3c30f27
travis: disable rpc tests for windows until they're not so flaky (Cory Fields)
daf03e7
RPC tests: create initial chain with specific timestamps (Gavin Andresen)
a8b2ce5
regression test only setmocktime RPC call (Gavin Andresen)
2014-11-18 14:31:29 -05:00
Luke Dashjr
3dcbb9b6b4
Abstract DecodeHexBlk and BIP22ValidationResult functions out of submitblock
2014-11-18 19:20:10 +00:00
Luke Dashjr
132ea9b48f
miner_tests: Disable checkpoints so they don't fail the subsidy-change test
2014-11-18 19:20:10 +00:00
Luke Dashjr
df08a626e0
TestBlockValidity function for CBlock proposals (used by CreateNewBlock)
2014-11-18 19:20:10 +00:00
Luke Dashjr
4ea1be7fb8
CreateNewBlock and miner_tests: Also check generated template is valid by CheckBlockHeader, ContextualCheckBlockHeader, CheckBlock, and ContextualCheckBlock
2014-11-18 19:20:10 +00:00
Luke Dashjr
a48f2d6ddd
Abstract context-dependent block checking from acceptance
2014-11-18 19:20:10 +00:00
Cory Fields
4300876c81
build: secp256k1 as a subdir, since it's required
2014-11-18 18:06:47 +01:00
Pieter Wuille
dffb8f81b8
Use libsecp256k1 in key.cpp
2014-11-18 18:06:46 +01:00
Pieter Wuille
4c97c64bf6
Do not use EC code in global constructors
2014-11-18 18:06:46 +01:00
Pieter Wuille
07a9901703
Always build and link libsecp256k1
2014-11-18 18:06:46 +01:00
Pieter Wuille
d48555b36a
Squashed 'src/secp256k1/' content from commit ad2028f
...
git-subtree-dir: src/secp256k1
git-subtree-split: ad2028f9890ca40bdd32055aa0fe5c1c9af0e485
2014-11-18 18:06:36 +01:00
Pieter Wuille
2245a95ce8
Merge commit 'd48555b36ac512161b81f9b6bca7bea16a0cd806' as 'src/secp256k1'
2014-11-18 18:06:36 +01:00
Pieter Wuille
7a7e109139
Delete src/secp256k1 before subtree import
2014-11-18 18:06:36 +01:00
Pieter Wuille
e2f30d547f
Properly lock cs_main in rest_block
2014-11-18 16:32:48 +01:00
Jeff Garzik
7715c84747
HTTP REST: minor fixes
...
1) const-ify internal helper ParseHashStr()
2) use HTTPError() helper when returning HTTP_NOT_FOUND
2014-11-18 10:27:45 -05:00
Jeff Garzik
9445b876bd
Merge pull request #2844
2014-11-18 10:17:22 -05:00
Wladimir J. van der Laan
27b2288f33
Merge pull request #5290
...
5d60b69
Coin Control: Make list mode default (Luke Dashjr)
4ff81d6
Bugfix: Clarify coin control dialog labels (Luke Dashjr)
2014-11-18 14:41:02 +01:00
Jonas Schnelli
a7f2941068
[Qt, OSX] fix usage of osx 10.8+ user notification center
...
Currently Bitcoin-Qts support for OSX User Notification Center is broken. This pull will fix a known issue of non-official-apple-built apps having problems sending user notifications.
2014-11-18 13:50:25 +01:00
Peter Todd
03914234b3
Discourage NOPs reserved for soft-fork upgrades
...
NOP1 to NOP10 are reserved for future soft-fork upgrades. In the event
of an upgrade such NOPs have *VERIFY behavior, meaning that if their
arguments are not correct the script fails. Discouraging these NOPs by
rejecting transactions containing them from the mempool ensures that
we'll never accept transactions, nor mine blocks, with scripts that are
now invalid according to the majority of hashing power even if we're not
yet upgraded. Previously this wasn't an issue as the IsStandard() rules
didn't allow upgradable NOPs anyway, but 7f3b4e95
relaxed the
IsStandard() rules for P2SH redemptions allowing any redeemScript to be
spent.
We *do* allow upgradable NOPs in scripts so long as they are not
executed. This is harmless as there is no opportunity for the script to
be invalid post-upgrade.
2014-11-17 22:22:33 -05:00
Wladimir J. van der Laan
8adf457047
Merge pull request #5212
...
219a147
script: check ScriptError values in script tests (Cory Fields)
ab9edbd
script: create sane error return codes for script validation and remove logging (Cory Fields)
2014-11-17 21:15:09 +01:00
Wladimir J. van der Laan
1f0436f8cb
Merge pull request #5293
...
c63a73d
Update comments in util to be doxygen compatible (Michael Ford)
2014-11-17 17:17:46 +01:00
Wladimir J. van der Laan
dbbe00f008
Merge pull request #5289
...
5617267
Fix typo in listreceivedbyaddress and listaccounts help text (Michael Ford)
2014-11-17 17:14:38 +01:00
Wladimir J. van der Laan
47cb3606a3
Merge pull request #5292
...
7329fdd
Update comments in txmempool to be doxygen compatible (Michael Ford)
2014-11-17 16:36:45 +01:00
Gavin Andresen
a8b2ce557d
regression test only setmocktime RPC call
2014-11-17 10:33:49 -05:00
Gavin Andresen
d6479ffc6a
Merge pull request #5275
...
1837987
Optimize -regtest setgenerate block generation (Gavin Andresen)
Signed-off-by: Gavin Andresen <gavinandresen@gmail.com>
2014-11-17 10:26:12 -05:00
Jonas Schnelli
6093aa1bb0
[Qt, OSX] QProgressBar CPU-Issue workaround
...
fixes #5295
2014-11-17 15:59:33 +01:00
Michael Ford
c63a73d18a
Update comments in util to be doxygen compatible
2014-11-17 11:04:01 +08:00
Michael Ford
7329fdd1ba
Update comments in txmempool to be doxygen compatible
...
Fix typo in Read() error message
2014-11-17 10:29:09 +08:00
Luke Dashjr
5d60b694e9
Coin Control: Make list mode default
2014-11-16 17:27:19 +00:00
Luke Dashjr
4ff81d6092
Bugfix: Clarify coin control dialog labels
2014-11-16 17:16:14 +00:00
Michael Ford
5617267cd5
Fix typo in listreceivedbyaddress and listaccounts help text
2014-11-16 22:14:22 +08:00
Cozz Lovan
7335ca1a05
[Qt] Fix height of BitcoinAmountField
2014-11-16 01:07:09 +01:00
Cory Fields
219a1470c4
script: check ScriptError values in script tests
2014-11-14 16:25:53 -05:00
Cory Fields
ab9edbd6b6
script: create sane error return codes for script validation and remove logging
...
Attempt to codify the possible error statuses associated with script
validation. script/types.h has been created with the expectation that it will
be part of the public lib interface. The other flag enums will be moved here in
a future commit.
Logging has also been removed in order to drop the dependency on core.h. It can
be re-added to bitcoind as-needed. This makes script verification finally free
of application state and boost!
2014-11-14 16:25:53 -05:00
Gavin Andresen
18379875bf
Optimize -regtest setgenerate block generation
...
Speed up generating blocks in regression test mode, by moving
block-creating and nonce-finding directly into the setgenerate
RPC call (instead of starting up a mining thread and waiting for
it to find a block).
This makes the forknotify RPC test three times quicker, for
example (10 seconds runtime instead of 30 seconds, assuming
the initial blockchain cache is already built).
2014-11-14 13:42:15 -05:00
Wladimir J. van der Laan
3d3ce7421e
Merge pull request #5198
...
1c0aa91
Update serialize comments to be doxygen compatible (Michael Ford)
2014-11-13 19:41:56 +01:00
Wladimir J. van der Laan
6c5c06eff7
Merge pull request #5252
...
b9a36b1
Make comments in /src/script doxygen compatible (Michael Ford)
2014-11-13 17:51:57 +01:00
Philip Kaufmann
cd4d3f1915
Win32: change buffer size for gethotsname in Discover()
...
- 256 byte is the maximum, as per
http://msdn.microsoft.com/en-us/library/windows/desktop/ms738527%28v=vs.85%29.aspx
2014-11-13 15:26:09 +01:00
Philip Kaufmann
8fa0494e92
Win32: log addresses found in Discover() calls
2014-11-13 15:25:44 +01:00
Wladimir J. van der Laan
ed98a6284b
Merge pull request #5203
...
0d91ae3
The first thing that SelectParams does is call SelectBaseParams. Therefore, we do not need to call SelectBaseParams immediately prior to calling SelectParams. (mruddy)
2014-11-13 13:14:45 +01:00
Pieter Wuille
60672a61ff
Merge pull request #5256
...
f4e0aef
Do signature-s negation inside the tests (Pieter Wuille)
2014-11-12 11:44:25 -08:00
Wladimir J. van der Laan
0c7862e968
Merge pull request #5161
...
845c86d
Do not use third party services for IP detection. (Gregory Maxwell)
2014-11-12 18:35:45 +01:00
21E14
cca48f69b0
Reset setBlockIndexCandidates once block index db loaded
2014-11-12 00:35:24 -05:00
Jeff Garzik
e2655e0ab1
Add unauthenticated HTTP REST interface to public blockchain data.
2014-11-11 04:52:43 -05:00
sinetek
d52f072605
Don't show wallet options in the preferences menu when running with -disablewallet
2014-11-10 20:50:41 +01:00
Wladimir J. van der Laan
af3ec17f67
Merge pull request #5246
...
a8a5e01
Adding license. (sinetek)
2014-11-10 17:31:54 +01:00
Wladimir J. van der Laan
33d5ee6830
Merge pull request #5239
...
65e3a1e
Make sure that GetRandomBytes never fails (Wladimir J. van der Laan)
2014-11-10 17:30:13 +01:00
Pieter Wuille
f4e0aefadc
Do signature-s negation inside the tests
...
To avoid the need for libsecp256k1 to expose such functionality.
2014-11-10 05:03:24 -08:00
Pieter Wuille
5406f61373
Merge pull request #5249
...
38c62ae
Adding const. (sinetek)
2014-11-10 04:29:57 -08:00
Michael Ford
b9a36b15bf
Make comments in /src/script doxygen compatible
2014-11-10 14:51:55 +08:00
sinetek
38c62aec0d
Adding const.
2014-11-08 18:09:06 -05:00
sinetek
a8a5e0133a
Adding license.
2014-11-08 15:46:21 -05:00
Pieter Wuille
7b7c866160
Merge pull request #5210
...
1f84793
Avoid a bunch of copying/conversion in script/sign (Pieter Wuille)
2014-11-08 08:01:47 -08:00
Gregory Maxwell
845c86d128
Do not use third party services for IP detection.
...
This is a simplified re-do of closed pull #3088 .
This patch eliminates the privacy and reliability problematic use
of centralized web services for discovering the node's addresses
for advertisement.
The Bitcoin protocol already allows your peers to tell you what
IP they think you have, but this data isn't trustworthy since
they could lie. So the challenge is using it without creating a
DOS vector.
To accomplish this we adopt an approach similar to the one used
by P2Pool: If we're announcing and don't have a better address
discovered (e.g. via UPNP) or configured we just announce to
each peer the address that peer told us. Since peers could
already replace, forge, or drop our address messages this cannot
create a new vulnerability... but if even one of our peers is
giving us a good address we'll eventually make a useful
advertisement.
We also may randomly use the peer-provided address for the
daily rebroadcast even if we otherwise have a seemingly routable
address, just in case we've been misconfigured (e.g. by UPNP).
To avoid privacy problems, we only do these things if discovery
is enabled.
2014-11-07 12:13:46 -08:00
Wladimir J. van der Laan
65e3a1e762
Make sure that GetRandomBytes never fails
...
We're using GetRandomBytes in several contexts where it's either
unwieldy to return an error, or an error would mean a fatal exception
anyhow.
@gmaxwell checked OpenSSL a while ago and discovered that it never
actually fails, but it can't hurt to be a bit paranoid here.
2014-11-07 13:49:25 +01:00
Ruben Dario Ponticelli
9ec75c5ef4
Add a locking mechanism to IsInitialBlockDownload to ensure it never goes from false to true.
2014-11-07 08:09:31 -03:00
ENikS
5985ba9e61
Fixing warning C4099: 'CExtPubKey' : type name first seen using 'class' now seen using 'struct'
2014-11-06 17:53:25 -05:00
Pieter Wuille
bfe029feeb
Reduce bitcoin-tx dependencies
2014-11-06 00:24:41 -08:00
Pieter Wuille
df0a45503b
Merge pull request #5221
...
93a6022
Reduce bitcoin-cli dependencies (Pieter Wuille)
2014-11-06 00:06:01 -08:00
Wladimir J. van der Laan
f654f0040b
Change -genproclimit default to 1
...
This is less surprising.
Avoids the overload-the-CPU default of using N threads for script
verification as well as N threads for generation where N is number of cores.
2014-11-06 08:54:39 +01:00
Wladimir J. van der Laan
9bdec76037
Always log number of threads for script verification
...
Helps for troubleshooting.
2014-11-06 08:54:34 +01:00
Pieter Wuille
93a6022400
Reduce bitcoin-cli dependencies
2014-11-05 12:47:33 -08:00
Wladimir J. van der Laan
d064f7f3ee
Merge pull request #5215
...
93a3f0e
Qt: Network-Traffic-Graph: make some distance between line and text (Jonas Schnelli)
2014-11-05 16:04:28 +01:00
Wladimir J. van der Laan
4e0e5e4bc8
Merge pull request #5218
...
236d96e
Qt: Add support for missing scrollbar in peers table (Jonas Schnelli)
2014-11-05 15:58:49 +01:00
Jonas Schnelli
236d96e0a3
Qt: Add support for missing scrollbar in peers table
2014-11-05 11:45:37 +01:00
Jonas Schnelli
93a3f0e7fe
Qt: Network-Traffic-Graph: make some distance between line and text
...
Text directly glued on the graph-line looks not so good.
2014-11-05 11:39:47 +01:00
Wladimir J. van der Laan
0778333b8c
Merge pull request #5173
...
50b43fd
Be a bit more verbose during -loadblock if we already have blocks (Matt Corallo)
8375e22
Fix -loadblock after shutdown during IBD (Matt Corallo)
4ead850
Fix for crash during block download (Matt Corallo)
2014-11-05 09:40:25 +01:00
mruddy
84877904c0
bitcoin-tx: Add the "-txid" option. Also add the hex-encoded transaction to the JSON output as the "hex" property.
2014-11-04 21:43:03 -05:00
Pieter Wuille
1f847936c9
Avoid a bunch of copying/conversion in script/sign
2014-11-04 13:59:41 -08:00
Cozz Lovan
9b1627d13e
[Wallet] Reduce minTxFee for transaction creation to 1000 satoshis
2014-11-04 22:29:40 +01:00
Daniel Kraft
af82884ab7
Add "warmup mode" for RPC server.
...
Start the RPC server before doing all the (expensive) startup
initialisations like loading the block index. Until the node is ready,
return all calls immediately with a new error signalling "in warmup"
with an appropriate status message (similar to the init message).
This is useful for RPC clients to know that the server is there (e. g.,
they don't have to start it) but not yet available. It is used in
Namecoin and Huntercoin already for some time, and there exists a UI
hooked onto the RPC interface that actively uses this to its advantage.
2014-11-04 16:01:09 +01:00
Philip Kaufmann
b4347f6035
minor code style cleanup after recent merges
...
- add a missing license header
- correct some header orderings etc.
2014-11-04 14:36:46 +01:00
Pieter Wuille
1dbabb6521
Merge pull request #5191
...
a2cfae8
util.cpp comment correction (21E14)
2014-11-04 04:38:45 -08:00
mruddy
0d91ae308c
The first thing that SelectParams does is call SelectBaseParams. Therefore, we do not need to call SelectBaseParams immediately prior to calling SelectParams.
2014-11-04 07:24:47 -05:00
Wladimir J. van der Laan
df504e924a
Merge pull request #5196
...
8473862
Fix all header defines (Pavel Janík)
2014-11-04 09:33:22 +01:00
Wladimir J. van der Laan
73b82a3089
Merge pull request #5162
...
d2e74c5
boost: moveonly: split CPubKey and friends to new files (Cory Fields)
78c228c
boost: moveonly: move BIP32Hash to hash.h (Cory Fields)
900078a
boost: moveonly: create eccryptoverify.h|cpp and move helper functions there (Cory Fields)
2014-11-04 09:26:45 +01:00
Wladimir J. van der Laan
ff17816abf
Merge pull request #3727
...
e69a587
RPC: submitblock: Support for returning specific rejection reasons (Luke Dashjr)
2014-11-03 20:55:46 +01:00
Wladimir J. van der Laan
7f7fede0eb
Merge pull request #5157
...
b4ee0bd
Introduce preferred download peers (Pieter Wuille)
2014-11-03 16:40:36 +01:00
Pavel Janík
84738627ce
Fix all header defines
2014-11-03 16:16:40 +01:00
Wladimir J. van der Laan
4e852e57b1
Merge pull request #5186
...
771d500
minor cleanup: include orders, end comments etc. (Philip Kaufmann)
2014-11-03 15:03:28 +01:00
Wladimir J. van der Laan
84d26d3a36
Merge pull request #5106
...
1bea2bb
Rename ProcessBlock to ProcessNewBlock to indicate change of behaviour, and document it (Luke Dashjr)
d29a291
Rename RPC_TRANSACTION_* errors to RPC_VERIFY_* and use RPC_VERIFY_ERROR for submitblock (Luke Dashjr)
f877aaa
Bugfix: submitblock: Use a temporary CValidationState to determine accurately the outcome of ProcessBlock, now that it no longer does the full block validity check (Luke Dashjr)
24e8896
Add CValidationInterface::BlockChecked notification (Luke Dashjr)
2014-11-03 12:22:45 +01:00
Wladimir J. van der Laan
2a6972133f
Merge pull request #5185
...
2191eac
add tests to travis (Cory Fields)
7667850
tests: replace the old (unused since Travis) tests with new rpc test scripts (Cory Fields)
fa7f8cd
tests: remove old pull-tester scripts (Cory Fields)
5122ea7
tests: fix forknotify.py on windows (Cory Fields)
7a41614
tests: allow rpc-tests to get filenames for bitcoind and bitcoin-cli from the environment (Cory Fields)
f635269
tests: enable alertnotify test for Windows (Cory Fields)
2014-11-03 09:23:17 +01:00
Wladimir J. van der Laan
7a9356bf16
Merge pull request #5169
...
20a5f61
Don't relay alerts to peers before version negotiation (Wladimir J. van der Laan)
2014-11-03 08:49:31 +01:00
21E14
a2cfae8e18
util.cpp comment correction
2014-11-01 09:41:48 -04:00
Wladimir J. van der Laan
04e988c6ce
Merge pull request #5145
...
484e350
Update comments in client version to be doxygen compatible (Michael Ford)
6395ba3
Update comments in version to be doxygen compatible (Michael Ford)
2014-10-31 16:30:55 +01:00
Pieter Wuille
7cd85f431a
Merge pull request #5187
...
e743678
fix a typo (Yoichi Hirai)
2014-10-31 05:47:08 -07:00
Yoichi Hirai
e743678d5a
fix a typo
2014-10-31 20:51:05 +09:00
Wladimir J. van der Laan
917b83127d
qt: translations update from Transifex
2014-10-31 11:19:05 +01:00
Wladimir J. van der Laan
96012e83f1
Merge pull request #5077
...
2aa6329
Enable customising node policy for datacarrier data size with a -datacarriersize option (Luke Dashjr)
2014-10-31 11:16:09 +01:00
Wladimir J. van der Laan
7bb681d407
Merge pull request #5168
...
023e63d
qt: Move transaction notification to transaction table model (Wladimir J. van der Laan)
2014-10-31 10:46:05 +01:00
Philip Kaufmann
771d500283
minor cleanup: include orders, end comments etc.
...
- no code changes
2014-10-31 09:41:15 +01:00
Cory Fields
d2e74c55bd
boost: moveonly: split CPubKey and friends to new files
2014-10-31 01:19:37 -04:00
Cory Fields
78c228c6e5
boost: moveonly: move BIP32Hash to hash.h
2014-10-31 01:13:07 -04:00
Cory Fields
900078aeb4
boost: moveonly: create eccryptoverify.h|cpp and move helper functions there
...
Eventually (after 0.10) these files will hold the logic for crypto
verification routines, and CKey/CPubKey will call into them.
2014-10-31 01:13:07 -04:00
Michael Ford
1c0aa9110e
Update serialize comments to be doxygen compatible
2014-10-31 13:07:05 +08:00
Cory Fields
f635269cd1
tests: enable alertnotify test for Windows
...
The semantics of "echo" are different there and they change the resulting text,
but they're still correct and predictable.
2014-10-31 00:04:14 -04:00
Michael Ford
484e350f04
Update comments in client version to be doxygen compatible
2014-10-31 08:27:27 +08:00
Michael Ford
6395ba3036
Update comments in version to be doxygen compatible
2014-10-31 08:20:17 +08:00
Wladimir J. van der Laan
8d2396c9c4
Merge pull request #5164
...
71697f9
Separate protocol versioning from clientversion (Cory Fields)
2014-10-30 17:24:36 +01:00