Commit Graph

4174 Commits

Author SHA1 Message Date
Warren Togami
3d538f0a92 Litecoin: Reduce high priority tx size limit to 5KB (from 10KB)
This is the first step in making the high priority transaction area
available to more people.  Future versions of Litecoin will eventually
reduce this to 1KB per tx to match Bitcoin 0.8.6+.  We decline to
make that drastic of a reduction now as currently p2pool miners have
too much dust to combine.

Litecoin plays an active role in p2pool development to make this less
of a problem.  Litecoin helped p2pool version 13 to reduce the
frequency of dust payouts and increase the smallest dust size to be
roughly 5x bigger.  An upcoming version of p2pool is expected to
eliminate a lot more dust payouts.

Modified-from: 9612e4c0d9730dbdb9971e53c72df17dd97daa2a
2013-12-04 20:36:51 -10:00
Warren Togami
80aa7891ec Litecoin: Reduce prioritysize from 27KB to 17KB 2013-12-04 20:36:51 -10:00
Warren Togami
75c6b1ad12 Litecoin: Checkpoint at block 456000 2013-12-04 20:36:51 -10:00
Warren Togami
91a94eb4ea LevelDB: use PosixWriteableFile only on MacOS X
mmap is proven on the other platforms, we are not changing it at
the last moment before release.
2013-12-04 20:36:51 -10:00
Patrick Strateman
648c6f4510 dont use mmap in leveldb, this is a marginal performance hit
fail on short writes

Ensure new files referred to by the manifest are in the filesystem.
2013-12-04 20:36:51 -10:00
theuni
cb75107c7d leveldb: Use native Darwin memory barriers 2013-12-04 20:36:50 -10:00
Wladimir J. van der Laan
8f16782290 Prevent empty transactions from being added to vtxPrev
CWalletTx::AddSupportingTransactions() was adding empty transaction
to vtxPrev in some cases. Skip over these.

Part one of the solution to #3190. This prevents invalid vtxPrev from
entering the wallet, but not current ones being transmitted.
2013-12-04 20:36:50 -10:00
Wladimir J. van der Laan
f1e8edc966 Refuse to retransmit transactions without vins
Versions of bitcoin before 0.8.6 have a bug that inserted
empty transactions into the vtxPrev in the wallet, which will cause the node to be
banned when retransmitted, hence add a check for !tx.vin.empty()
before RelayTransaction.
2013-12-04 20:36:50 -10:00
Wladimir J. van der Laan
bf7e6d69bf qt: use deleteLater to remove send entries
Use deleteLater() instead of delete, as it is not allowed
to delete widgets directly in an event handler.
Should solve the MacOSX random crashes on send with coincontrol.

Rebased-From: 6c98cca9e4
2013-12-03 22:09:16 -10:00
Philip Kaufmann
4b2d42ec3f Bitcoin-Qt: Fix display of window when bitcoin: URI is opened
WalletView:
- add new signal showNormalIfMinimized()
- emit the new signal in handleURI() to fix a bug, preventing the main
  window to show up when using bitcoin: URIs

Upstream: dbc0a6aba2
2013-11-28 12:34:27 -10:00
Timothy Stranex
f7daed9062 Fix typo in a comment: it's base58, not base48. 2013-11-28 12:34:27 -10:00
Wladimir J. van der Laan
7bc8d0d22a Create parent directories if needed in GetDataDir
One-line change. Fixes #2752.
2013-11-28 12:34:26 -10:00
Gregory Maxwell
9cb728a3bd Make the rand tests determinstic. (fixes #2714)
This avoids spurious errors with the old tests but still tests
 enough that if the rng is replaced with a totally broken one
 it should still fail.
2013-11-28 12:34:26 -10:00
Philip Kaufmann
a950202bde fix invalid conversion error with MinGW 4.8.1 in net.cpp
- fixes src\net.cpp:1601: Error:invalid conversion from 'void*' to
  'const char*' [-fpermissive] in a setsockopt() call on Win32 that was
  found by using MinGW 4.8.1 compiler suite
2013-11-28 12:34:26 -10:00
Luke Dashjr
68a488fbcc Bugfix: Move boost/version include from db.cpp to walletdb.cpp where BOOST_VERSION is used 2013-11-28 12:34:26 -10:00
Mike Hearn
8f8761519c Store and use a sanitized subVer
Rebased-from: a946aa8d3e
2013-11-27 22:28:40 -10:00
Gavin Andresen
cb063df2fe Refactor: pull alert string sanitization into util
Rebased-from: 17faf56262
2013-11-27 22:28:40 -10:00
theuni
33a35d217b qt: restore icon dock menu
This was removed by 25c0cce7f. It was apparently removed in qt5, but
may return for 5.1.
2013-11-27 22:28:40 -10:00
theuni
e3de4e6417 Fix uninitialized variable added in b33b9a6fe
After discussing with BlueMatt, this appears to be harmless in its
current state since it's always set before it's used. Initialize it
anyway for readability and future safety.

Rebased-from: 106f133de6
2013-11-25 22:39:24 -10:00
Matt Corallo
8ede0c3460 Fix comparison tool by asking for blocks more aggressively
Rebased-from: b33b9a6fef
2013-11-25 22:39:17 -10:00
Warren Togami
8809504863 Merge pull request #89 from pooler/more_logging
Add some additional logging to give extra network insight.
2013-11-23 04:58:23 -08:00
Cozz Lovan
e9e6262c0e Coin Control improvements October 25th, 2013
* code nits
 * introduced GUIUtil::setClipboard
 * calling getBalance(coinControl) now in walletmodel.cpp
 * replaced "WARNING" with "Warning"
 * added notr="true" to ui non translatable strings
2013-11-22 23:54:13 -10:00
Warren Togami
72b4e39c09 Litecoin: Adjust Coin Control for 0.8.5 for Litecoin
Display the correct fee including the per output sub-CENT dust penalty.
2013-11-22 23:54:13 -10:00
Cozz Lovan
9bec9feb87 Coin Control Features for Bitcoin 0.8.5
* fix transaction timezone display bug in output selection
* excluding Bitcoin 0.9 changes for #3008 and #2945
* merged src/wallet.cpp for nMinimumInputValue (mininput)
2013-11-22 23:54:13 -10:00
Mike Hearn
ab48dd1d17 Add some additional logging to give extra network insight. 2013-11-22 13:08:02 +01:00
Wladimir J. van der Laan
99f3d18b62 qt: GUI support for -disablewallet mode
Rebased-from: 8121047b20f6486bf049e642c3e6ca61682ffdd9
2013-11-14 00:44:49 -10:00
Warren Togami
cdd76fa878 Litecoin: getworkex: CreateNewBlock() scriptPubKey argument instead of key 2013-11-14 00:44:49 -10:00
Jeff Garzik
4e111e0a8f Add -disablewallet option, to disable wallet support (and BDB)
Conflicts:
	src/init.cpp

Rebased-from: 5d4f3a1f0cbdf52257b41ea09d175c0018ad9434
2013-11-14 00:44:49 -10:00
Jeff Garzik
ebabf7571f init.cpp: cosmetic indent changes, preparing for no-wallet
Rebased-from: 520cc05b89aae5fed155482d5fa66b4290487d55

Conflicts:
	src/init.cpp
2013-11-14 00:44:49 -10:00
Jeff Garzik
a7909372bd RPC validateaddress: test pwalletMain for NULL (no-wallet mode)
Conflicts:
	src/rpcwallet.cpp

Rebased-from: b878f6a92436e3facd700e2e10c04f541cd6421b
2013-11-14 00:44:49 -10:00
Jeff Garzik
a288878a00 Support absence of wallet (pwalletMain==NULL) in several locations,
notably RPC.

Conflicts:
	src/init.cpp
	src/rpcmining.cpp
	src/rpcwallet.cpp
	src/bitcoinrpc.cpp

Rebased-from: 541a7fcd515a27ebaa3ae5f1a9a698dab3db6ead
2013-11-14 00:44:49 -10:00
Jeff Garzik
fbf54fb6da miner: constify CreateNewBlock() arg scriptPubKeyIn
Conflicts:
	src/miner.cpp
	src/miner.h

Rebased-from: ad7d7cde5d30bcbfa7803c90daac7297b8a55e42
2013-11-14 00:44:49 -10:00
Jeff Garzik
6333bf9629 RPC: getblocktemplate does not require a key, to create a block template
getblocktemplate only uses certain portions of the coinbase transaction,
notably ignoring the coinbase TX output entirely.

Use CreateNewBlock() rather than CreateNewBlockWithKey(), eliminating
the needless key passing.

Should be zero behavior changes.
2013-11-14 00:44:49 -10:00
Jeff Garzik
b3060a26d0 CreateNewBlock() now takes scriptPubKey argument,
rather than a key.

CreateNewBlockWithKey() helper is added to restore existing functionality,
making this an equivalent-transformation change.

Conflicts:
	src/miner.cpp
	src/miner.h

Rebased-from: fcc32b7b9ce5bc310cbad677da7e7bca3a01459a
2013-11-14 00:44:49 -10:00
Jeff Garzik
02aa46394d RPC: add 'verifychain', to verify chain database at runtime 2013-11-14 00:44:48 -10:00
Jeff Garzik
0e65e7bd07 Minor miner fixes (hey hey it's fun to say)
* Fix UpdateCoins() definition in main.h
* Remove pwalletMain reference from BitcoinMiner(), as it is passed
  a wallet argument.

Conflicts:
	src/main.h

Rebased-from: 18946846d5
2013-11-14 00:44:48 -10:00
Jeff Garzik
e2bc2dff95 Pass check level, check depth to VerifyDB() 2013-11-14 00:44:48 -10:00
Wladimir J. van der Laan
5edaa52176 Move pMiningKey init out of StartRPCThreads
This commit decouples the pMiningKey initialization and shutdown from the RPC
threads.

`getwork` and `getblocktemplate` rely on pMiningKey, and can also be ran
from the debug window in the UI even when the RPC server is not running.

Solves issue #2706.

Conflicts:
	src/rpcmining.cpp
2013-11-14 00:44:48 -10:00
Jeff Garzik
8687a0ebbc RPC: add getbestblockhash, to return tip of best chain 2013-11-14 00:44:48 -10:00
Warren Togami
892b16f07a Litecoin: s/BitcoinMiner/LitecoinMiner/ and detect scrypt implementation 2013-11-14 00:44:48 -10:00
Warren Togami
d4c56161ae Revert "Litecoin: Remove native coin generation."
This reverts commit 94bf538131.

Conflicts:
	src/init.cpp
2013-11-14 00:44:48 -10:00
Warren Togami
ea24796726 Merge pull request #86 from wtogami/clangfix
Remove redundant insert method in serialize.
2013-11-12 10:46:48 -08:00
Warren Togami
0801244768 Upgrade to Bitcoin LevelDB 1.13
Merge commit '2a6cdcf6e57922fec0219b5966df85c8417d6ba3' into master-0.8
2013-11-10 21:13:38 -10:00
Warren Togami
2a6cdcf6e5 Squashed 'src/leveldb/' changes from be1b0ff..be91006
936b461 Merge upstream LevelDB 1.13.
748539c LevelDB 1.13

git-subtree-dir: src/leveldb
git-subtree-split: be9100673b05cec1662a54d0b7a59e4317fdda86
2013-11-10 21:13:38 -10:00
Pieter Wuille
3efed50982 Remove redundant insert method in serialize.
This seems to cause problems on recent clang, and looks totally
redundant and unused.

The const_iterator version is identical to the vector::const_iterator
one (which is a typedef thereof). Marking it private (instead of
removing) compiles fine, so this version is effectively unused even.
2013-11-08 15:45:58 -10:00
Warren Togami
d05e36e2ef Merge pull request #84 from pooler/logtimestamp_def
make -logtimestamps default on and rework help-message
2013-11-08 17:31:11 -08:00
Warren Togami
b64e8648be Merge pull request #85 from pooler/processgetdata
Reduce latency in network processing
2013-11-08 17:30:45 -08:00
Patrick Strateman
9229434811 process received messages one at a time without sleeping between messages 2013-11-06 21:52:14 +01:00
Philip Kaufmann
e56355b980 make -logtimestamps default on and rework help-message 2013-11-05 21:49:43 +01:00
Warren Togami
1d63195f3f Litecoin: mingw32 -mstackrealign to prevent SSE2 misalignment crashes 2013-11-02 10:11:16 -10:00