]> Git Repo - VerusCoin.git/log
VerusCoin.git
12 years agoMerge pull request #2033 from sipa/kickconflicts
Pieter Wuille [Sat, 1 Dec 2012 01:10:07 +0000 (17:10 -0800)]
Merge pull request #2033 from sipa/kickconflicts

Bugfix: remove conflicting transactions from memory pool

12 years agoMerge pull request #2037 from luke-jr/printpriority
Gavin Andresen [Sat, 1 Dec 2012 00:16:59 +0000 (16:16 -0800)]
Merge pull request #2037 from luke-jr/printpriority

Allow -printpriority without -debug

12 years agoMerge pull request #2049 from sipa/testtmp
Pieter Wuille [Fri, 30 Nov 2012 23:56:05 +0000 (15:56 -0800)]
Merge pull request #2049 from sipa/testtmp

Make test_bitcoin run in a temp datadir

12 years agoMake test_bitcoin run in a temp datadir
Pieter Wuille [Wed, 28 Nov 2012 20:58:41 +0000 (21:58 +0100)]
Make test_bitcoin run in a temp datadir

12 years agoAdd GetTempPath() to util
Pieter Wuille [Wed, 28 Nov 2012 23:33:12 +0000 (00:33 +0100)]
Add GetTempPath() to util

12 years agoMerge pull request #2044 from Diapolo/backupwallet
Wladimir J. van der Laan [Wed, 28 Nov 2012 07:41:50 +0000 (23:41 -0800)]
Merge pull request #2044 from Diapolo/backupwallet

do not silently ignore errors on "backupwallet" RPC cmd

12 years agoMerge pull request #2006 from robbak/make-leveldb-macro
Pieter Wuille [Tue, 27 Nov 2012 20:49:37 +0000 (12:49 -0800)]
Merge pull request #2006 from robbak/make-leveldb-macro

Change 'make' to $(MAKE) in leveldb make command line

12 years agoMerge pull request #1988 from Diapolo/ThreadSafeMessageBox
Wladimir J. van der Laan [Tue, 27 Nov 2012 20:34:18 +0000 (12:34 -0800)]
Merge pull request #1988 from Diapolo/ThreadSafeMessageBox

update CClientUIInterface and remove orphan Wx stuff

12 years agodo not silently ignore errors on "backupwallet" RPC cmd
Philip Kaufmann [Tue, 27 Nov 2012 15:27:54 +0000 (16:27 +0100)]
do not silently ignore errors on "backupwallet" RPC cmd

12 years agoAllow -printpriority without -debug
Luke Dashjr [Mon, 26 Nov 2012 16:30:54 +0000 (16:30 +0000)]
Allow -printpriority without -debug

12 years agoupdate CClientUIInterface and remove orphan Wx stuff
Philip Kaufmann [Mon, 5 Nov 2012 07:04:21 +0000 (08:04 +0100)]
update CClientUIInterface and remove orphan Wx stuff

- fix ThreadSafeMessageBox always displays error icon
- allow to specify MSG_ERROR / MSG_WARNING or MSG_INFORMATION without a
  custom caption / title
- allow to specify CClientUIInterface::ICON_ERROR / ICON_WARNING and
  ICON_INFORMATION (which is default) as message box icon
- remove CClientUIInterface::OK from ThreadSafeMessageBox-calls, as
  the OK button will be set as default, if none is specified
- prepend "Bitcoin - " to used captions
- rename BitcoinGUI::error() -> BitcoinGUI::message() and add function
  documentation
- change all style parameters and enum flags to unsigned
- update code to use that new API

- update Client- and WalletModel to use new BitcoinGUI::message() and
  rename the classes error() method into message()
- include the possibility to supply the wanted icon for messages from
  Client- and WalletModel via "style" parameter

12 years agoBugfix: remove conflicting transactions from memory pool
Pieter Wuille [Sat, 24 Nov 2012 13:26:51 +0000 (14:26 +0100)]
Bugfix: remove conflicting transactions from memory pool

When a transaction A is in the memory pool, while a transaction B
(which shares an input with A) gets accepted into a block, A was
kept forever in the memory pool.

This commit adds a CTxMemPool::removeConflicts method, which
removes transactions that conflict with a given transaction, and
all their children.

This results in less transactions in the memory pool, and faster
construction of new blocks.

12 years agoMerge pull request #2004 from alexanderkjeldaas/simplify-cmutexlock
Pieter Wuille [Sat, 24 Nov 2012 21:55:00 +0000 (13:55 -0800)]
Merge pull request #2004 from alexanderkjeldaas/simplify-cmutexlock

Simplify CMutexLock

12 years agoMerge pull request #2013 from sipa/blockheader
Pieter Wuille [Sat, 24 Nov 2012 21:54:12 +0000 (13:54 -0800)]
Merge pull request #2013 from sipa/blockheader

Split off CBlockHeader from CBlock

12 years agoMerge pull request #1980 from sipa/noreorgsame
Pieter Wuille [Thu, 22 Nov 2012 21:33:03 +0000 (13:33 -0800)]
Merge pull request #1980 from sipa/noreorgsame

Do not reorganize if new branch has same amount of work

12 years agoMerge pull request #2024 from Diapolo/fix_qt_crash
Wladimir J. van der Laan [Thu, 22 Nov 2012 10:08:42 +0000 (02:08 -0800)]
Merge pull request #2024 from Diapolo/fix_qt_crash

Bitcoin-Qt: fix crash on Windows caused by CDBEnv::EnvShutdown()

12 years agoMerge pull request #2031 from gavinandresen/scriptcomment
Gavin Andresen [Wed, 21 Nov 2012 21:02:40 +0000 (13:02 -0800)]
Merge pull request #2031 from gavinandresen/scriptcomment

Add assert and comment for subtle pay-to-script-hash logic

12 years agoAdd assert and comment for subtle pay-to-script-hash logic
Gavin Andresen [Wed, 21 Nov 2012 18:58:10 +0000 (13:58 -0500)]
Add assert and comment for subtle pay-to-script-hash logic

12 years agoBitcoin-Qt: fix crash on Windows caused by CDBEnv::EnvShutdown()
Philip Kaufmann [Sun, 18 Nov 2012 10:58:32 +0000 (11:58 +0100)]
Bitcoin-Qt: fix crash on Windows caused by CDBEnv::EnvShutdown()

- can be triggerd by just adding -proxy=crashme with 0.7.1
- crash occured, when AppInit2() was left with return false; after the
  first call to bitdb.open() (Step 6 in init)
- this is caused by GetDataDir() or .string() in CDBEnv::EnvShutdown()
  called via the bitdb global destructor
- init fDbEnvInit and fMockDb to false in CDBEnv::CDBEnv()

12 years agoMerge pull request #2022 from Diapolo/fix_#2018
Wladimir J. van der Laan [Sat, 17 Nov 2012 09:00:20 +0000 (01:00 -0800)]
Merge pull request #2022 from Diapolo/fix_#2018

fix pull #2018

12 years agoConnectBlock(): fix error() format to be unsigned
Philip Kaufmann [Fri, 16 Nov 2012 20:46:16 +0000 (21:46 +0100)]
ConnectBlock(): fix error() format to be unsigned

- I introduced the wrong format macro with my former patch (#2018), this
  needs to be signed not unsigned (thanks Luke-Jr)

12 years agoMerge pull request #2019 from Diapolo/bitcoinstrings_upd
Wladimir J. van der Laan [Sat, 17 Nov 2012 01:29:04 +0000 (17:29 -0800)]
Merge pull request #2019 from Diapolo/bitcoinstrings_upd

update bitcoinstrings.cpp and bitcoin_en.ts

12 years agoupdate bitcoinstrings.cpp and bitcoin_en.ts
Philip Kaufmann [Fri, 16 Nov 2012 13:52:36 +0000 (14:52 +0100)]
update bitcoinstrings.cpp and bitcoin_en.ts

12 years agoMerge pull request #2009 from sipa/fixmove
Gavin Andresen [Fri, 16 Nov 2012 16:09:41 +0000 (08:09 -0800)]
Merge pull request #2009 from sipa/fixmove

Prevent RPC 'move' from deadlocking

12 years agoMerge pull request #2018 from Diapolo/fix_warning
Pieter Wuille [Fri, 16 Nov 2012 09:56:41 +0000 (01:56 -0800)]
Merge pull request #2018 from Diapolo/fix_warning

ensure we use our format macros to avoid compilation warnings

12 years agoensure we use our format macros to avoid compilation warnings
Philip Kaufmann [Fri, 16 Nov 2012 07:29:47 +0000 (08:29 +0100)]
ensure we use our format macros to avoid compilation warnings

- fixes 2 warnings I observed while compiling on Windows with MinGW

12 years agoMerge pull request #1767 from Diapolo/RPCCon_clear_history
Wladimir J. van der Laan [Fri, 16 Nov 2012 06:31:12 +0000 (22:31 -0800)]
Merge pull request #1767 from Diapolo/RPCCon_clear_history

clear history when using clear button in RPC console

12 years agoMerge pull request #1670 from luke-jr/blksubstr
Jeff Garzik [Fri, 16 Nov 2012 02:47:07 +0000 (18:47 -0800)]
Merge pull request #1670 from luke-jr/blksubstr

Use full block hash as unique identifier in debug.log

12 years agoMerge pull request #1945 from centromere/leveldb_fix
Jeff Garzik [Fri, 16 Nov 2012 02:31:20 +0000 (18:31 -0800)]
Merge pull request #1945 from centromere/leveldb_fix

Fixed compile error on FreeBSD 9.

12 years agoMerge pull request #1987 from jgarzik/no-pw-match
Jeff Garzik [Fri, 16 Nov 2012 02:22:50 +0000 (18:22 -0800)]
Merge pull request #1987 from jgarzik/no-pw-match

RPC: Forbid RPC username == RPC password

12 years agoMerge pull request #2005 from Diapolo/fixes_main
Jeff Garzik [Fri, 16 Nov 2012 02:20:35 +0000 (18:20 -0800)]
Merge pull request #2005 from Diapolo/fixes_main

some small fixes for main.cpp/.h

12 years agoMerge pull request #2012 from luke-jr/invblk_errs
Jeff Garzik [Fri, 16 Nov 2012 02:18:55 +0000 (18:18 -0800)]
Merge pull request #2012 from luke-jr/invblk_errs

Print error for coinbase-pays-too-much case of ConnectBlock failing

12 years agoRPC: Forbid RPC username == RPC password
Jeff Garzik [Mon, 5 Nov 2012 06:41:53 +0000 (01:41 -0500)]
RPC: Forbid RPC username == RPC password

Added security measure.

12 years agoMerge pull request #2010 from Diapolo/bind_unsigned
Pieter Wuille [Thu, 15 Nov 2012 23:37:00 +0000 (15:37 -0800)]
Merge pull request #2010 from Diapolo/bind_unsigned

make enum and parameter used in Bind() unsigned

12 years agoSplit off CBlockHeader from CBlock
Pieter Wuille [Wed, 14 Nov 2012 21:18:10 +0000 (22:18 +0100)]
Split off CBlockHeader from CBlock

Cleaner and removes the need for the application-specific flags in
serialize.h.

12 years agoMerge pull request #2008 from sipa/scriptflags
Jeff Garzik [Thu, 15 Nov 2012 22:49:06 +0000 (14:49 -0800)]
Merge pull request #2008 from sipa/scriptflags

Introduce script verification flags

12 years agoIntroduce script verification flags
Pieter Wuille [Tue, 13 Nov 2012 22:03:25 +0000 (23:03 +0100)]
Introduce script verification flags

These flags select features to be enabled/disabled during script
evaluation/checking, instead of several booleans passed along.
Currently these flags are defined:
* SCRIPT_VERIFY_P2SH: enable BIP16-style subscript evaluation
* SCRIPT_VERIFY_STRICTENC: enforce strict adherence to pubkey/sig encoding standards.

12 years agoMerge pull request #1984 from grimd34th/patch-2
Wladimir J. van der Laan [Thu, 15 Nov 2012 06:24:16 +0000 (22:24 -0800)]
Merge pull request #1984 from grimd34th/patch-2

VariantClear@4 + shutdown@8 patch

12 years agoPrint error for coinbase-pays-too-much case of ConnectBlock failing
Luke Dashjr [Sat, 8 Sep 2012 19:52:59 +0000 (19:52 +0000)]
Print error for coinbase-pays-too-much case of ConnectBlock failing

12 years agomake enum and parameter used in Bind() unsigned
Philip Kaufmann [Wed, 14 Nov 2012 15:07:40 +0000 (16:07 +0100)]
make enum and parameter used in Bind() unsigned

- it's good practise to use unsigned int for enum flags, so change this
  one, as I introduced this for Bind()

12 years agoSimplify CMutexLock
Alexander Kjeldaas [Sun, 11 Nov 2012 06:11:13 +0000 (03:11 -0300)]
Simplify CMutexLock

o Remove unused Leave and GetLock functions
o Make Enter and TryEnter private.
o Simplify Enter and TryEnter.
  boost::unique_lock doesn't really know whether the
  mutex it wraps is locked or not when the defer_lock
  option is used.
  The boost::recursive_mutex does not expose this
  information, so unique_lock only infers this
  knowledge.  When taking the lock is defered, it
  (randomly) assumes that the lock is not taken.
  boost::unique_lock has the following definition:

        unique_lock(Mutex& m_,defer_lock_t):
            m(&m_),is_locked(false)
        {}

        bool owns_lock() const
        {
            return is_locked;
        }
  Thus it is a mistake to check owns_lock() in Enter
  and TryEnter - they will always return false.

12 years agoPrevent RPC 'move' from deadlocking
Pieter Wuille [Tue, 13 Nov 2012 22:52:37 +0000 (23:52 +0100)]
Prevent RPC 'move' from deadlocking

It seemed to create two CWalletDB objects that both grab the
database lock.

12 years agoChange block references in debug.log to full hash instead of just 0..20
Luke Dashjr [Mon, 20 Aug 2012 19:22:15 +0000 (19:22 +0000)]
Change block references in debug.log to full hash instead of just 0..20

12 years agoAbstract block hash substr extraction (for debug.log) into BlockHashStr inline
Luke Dashjr [Mon, 13 Aug 2012 07:02:44 +0000 (07:02 +0000)]
Abstract block hash substr extraction (for debug.log) into BlockHashStr inline

12 years agoMerge pull request #1479 from Diapolo/wallet_add_GetImmatureCredit
Wladimir J. van der Laan [Tue, 13 Nov 2012 07:33:46 +0000 (23:33 -0800)]
Merge pull request #1479 from Diapolo/wallet_add_GetImmatureCredit

add CWalletTx::GetImmatureCredit() and use it in CWallet::GetImmatureBalance()

12 years agoadd CWalletTx::GetImmatureCredit() and use it in CWallet::GetImmatureBalance()
Philip Kaufmann [Mon, 18 Jun 2012 06:32:33 +0000 (08:32 +0200)]
add CWalletTx::GetImmatureCredit() and use it in CWallet::GetImmatureBalance()

12 years agoMerge pull request #2002 from alexanderkjeldaas/clang-warnings
Wladimir J. van der Laan [Tue, 13 Nov 2012 06:26:08 +0000 (22:26 -0800)]
Merge pull request #2002 from alexanderkjeldaas/clang-warnings

o Removed verbose clang warning

12 years agoChange 'make' to $(MAKE) in leveldb make command line
Robert Backhaus [Tue, 13 Nov 2012 01:45:07 +0000 (11:45 +1000)]
Change 'make' to $(MAKE) in leveldb make command line

12 years agosome small fixes for main.cpp/.h
Philip Kaufmann [Sun, 11 Nov 2012 12:11:42 +0000 (13:11 +0100)]
some small fixes for main.cpp/.h

- remove an unwanted ";" at the end of the ~CCoinsView() destructor
- in FindBlockPos() and FindUndoPos() only call fclose(), is file is open
- fix an error string in the CBlockUndo class

12 years agoMerge pull request #1970 from Arnavion/fix-make-leveldb
Pieter Wuille [Sun, 11 Nov 2012 11:20:29 +0000 (03:20 -0800)]
Merge pull request #1970 from Arnavion/fix-make-leveldb

leveldb cannot compile with custom CFLAGS / CXXFLAGS / LDFLAGS

12 years agoMerge pull request #1997 from Diapolo/bdb_open
Pieter Wuille [Sun, 11 Nov 2012 11:16:52 +0000 (03:16 -0800)]
Merge pull request #1997 from Diapolo/bdb_open

simplify CDBEnv::Open() / fix small glitches

12 years agoMerge pull request #2000 from Diapolo/fix_indentation
Pieter Wuille [Sun, 11 Nov 2012 10:23:10 +0000 (02:23 -0800)]
Merge pull request #2000 from Diapolo/fix_indentation

fix some missing indentations in main.cpp for better readability

12 years agoo Removed verbose clang warning
Alexander Kjeldaas [Sun, 11 Nov 2012 02:53:32 +0000 (23:53 -0300)]
o Removed verbose clang warning

12 years agoMerge pull request #1979 from sipa/corefndoc
Pieter Wuille [Sat, 10 Nov 2012 21:47:00 +0000 (13:47 -0800)]
Merge pull request #1979 from sipa/corefndoc

One-line comments for public main functions

12 years agoOne-line comments for public main functions
Pieter Wuille [Sun, 4 Nov 2012 12:18:04 +0000 (13:18 +0100)]
One-line comments for public main functions

12 years agoFix status text after reindex
Pieter Wuille [Sat, 10 Nov 2012 21:07:17 +0000 (22:07 +0100)]
Fix status text after reindex

12 years agoMerge pull request #1992 from Diapolo/no_memset
Gregory Maxwell [Sat, 10 Nov 2012 17:29:32 +0000 (09:29 -0800)]
Merge pull request #1992 from Diapolo/no_memset

don't use memset() in privacy/security relevant code parts

12 years agofix some missing indentations in main.cpp for better readability
Philip Kaufmann [Sat, 10 Nov 2012 13:26:34 +0000 (14:26 +0100)]
fix some missing indentations in main.cpp for better readability

12 years agoMerge pull request #1977 from Diapolo/rem_printf_redef_rpc
Wladimir J. van der Laan [Sat, 10 Nov 2012 11:47:11 +0000 (03:47 -0800)]
Merge pull request #1977 from Diapolo/rem_printf_redef_rpc

remove printf redefinition from bitcoinrpc.cpp

12 years agoMerge pull request #1993 from Diapolo/qt_header_cleanup
Wladimir J. van der Laan [Sat, 10 Nov 2012 11:46:35 +0000 (03:46 -0800)]
Merge pull request #1993 from Diapolo/qt_header_cleanup

Qt: small header changes / fixes

12 years agosimplify CDBEnv::Open() / fix small glitches
Philip Kaufmann [Fri, 9 Nov 2012 21:51:40 +0000 (22:51 +0100)]
simplify CDBEnv::Open() / fix small glitches

- remove pathEnv from CDBEnv, as this attribute is not needed
- change path parameter in ::Open() to a reference
- make nDbCache variable an unsigned integer
- remove a missplaced ";" behin ::IsMock()

12 years agoMerge pull request #1778 from Diapolo/allow_explicit_bind
Pieter Wuille [Fri, 9 Nov 2012 23:36:57 +0000 (15:36 -0800)]
Merge pull request #1778 from Diapolo/allow_explicit_bind

allow listening on -bind=address for blocked networks

12 years agoallow listening on -bind=address for blocked networks
Philip Kaufmann [Mon, 3 Sep 2012 13:54:47 +0000 (15:54 +0200)]
allow listening on -bind=address for blocked networks

- this allows the client to listen on via -bind specified addresses
  (e.g. 127.0.0.1), even when a network (IPv4 in that case) was blocked
  via e.g -onlynet="Tor"
- introduce enum BindFlags to avoid passing multiple bools to Bind()
- make -bind help text clear we ALWAYS listen on the specified address
- remove an unused variable
- remove 2 unneeded IsLimited() checks before calling Bind(), which does
  these checks anyway

- usage case: specify -bind=127.0.0.1 -onlynet="Tor" to allow incoming
  connections to a Tor hidden service, but still don't allow other IPv4
  nodes to connect / get connected

12 years agoFix tests after cache tweaks
Pieter Wuille [Fri, 9 Nov 2012 23:09:57 +0000 (00:09 +0100)]
Fix tests after cache tweaks

12 years agoMerge pull request #1943 from sipa/reindex2
Pieter Wuille [Fri, 9 Nov 2012 22:50:30 +0000 (14:50 -0800)]
Merge pull request #1943 from sipa/reindex2

Add -reindex, to perform in-place reindexing of block chain files

12 years agoMerge branch 'http-improvements'
Jeff Garzik [Fri, 9 Nov 2012 22:34:25 +0000 (17:34 -0500)]
Merge branch 'http-improvements'

The base bits of pull req #1982.

12 years agoMerge pull request #1978 from sipa/nodetach
Pieter Wuille [Fri, 9 Nov 2012 22:10:50 +0000 (14:10 -0800)]
Merge pull request #1978 from sipa/nodetach

Remove -detachdb and stop's detach argument.

12 years agomake CBase58Data class use zero_after_free_allocator
Philip Kaufmann [Fri, 9 Nov 2012 11:50:59 +0000 (12:50 +0100)]
make CBase58Data class use zero_after_free_allocator

- this way there is no need for an explicit destructor, who does the same
  thing anyway

12 years agodon't use memset() in privacy/security relevant code parts
Philip Kaufmann [Thu, 8 Nov 2012 18:38:49 +0000 (19:38 +0100)]
don't use memset() in privacy/security relevant code parts

As memset() can be optimized out by a compiler it should not be used in
privacy/security relevant code parts. OpenSSL provides the safe
OPENSSL_cleanse() function in crypto.h, which perfectly does the job of
clean and overwrite data.

For details see: http://www.viva64.com/en/b/0178/

- change memset() to OPENSSL_cleanse() where appropriate
- change a hard-coded number from netbase.cpp into a sizeof()

12 years agoAdd -reindex, to perform in-place reindexing of block chain files
Pieter Wuille [Sun, 21 Oct 2012 19:23:13 +0000 (21:23 +0200)]
Add -reindex, to perform in-place reindexing of block chain files

Flushes the blktree/ and coins/ databases, and reindexes the
block chain files, as if their contents was loaded via -loadblock.

Based on earlier work by Jeff Garzik.

12 years agoMove ThreadImport to init.cpp
Pieter Wuille [Mon, 22 Oct 2012 20:45:26 +0000 (22:45 +0200)]
Move ThreadImport to init.cpp

12 years agoLoadExternalBlockFile switched to CBufferedFile
Pieter Wuille [Sat, 27 Oct 2012 20:01:38 +0000 (22:01 +0200)]
LoadExternalBlockFile switched to CBufferedFile

12 years agoAdd CBufferedFile
Pieter Wuille [Sat, 27 Oct 2012 19:01:57 +0000 (21:01 +0200)]
Add CBufferedFile

12 years agoMerge pull request #1981 from sipa/caches
Pieter Wuille [Thu, 8 Nov 2012 22:17:37 +0000 (14:17 -0800)]
Merge pull request #1981 from sipa/caches

Cache size optimizations

12 years agoQt: small header changes / fixes
Philip Kaufmann [Thu, 8 Nov 2012 20:45:32 +0000 (21:45 +0100)]
Qt: small header changes / fixes

- ensure header inclusion guard is named after the header file
- add missing comments at the end of some inclusion guards
- add a small Qt5 compatibility fix in macdockiconhandler.h

12 years agoDo not reorganize if new branch has same amount of work
Pieter Wuille [Sun, 4 Nov 2012 12:38:51 +0000 (13:38 +0100)]
Do not reorganize if new branch has same amount of work

12 years agoMerge pull request #1830 from Diapolo/trans_rem_spaces
Wladimir J. van der Laan [Mon, 5 Nov 2012 07:34:57 +0000 (23:34 -0800)]
Merge pull request #1830 from Diapolo/trans_rem_spaces

fix some double-spaces in strings

12 years agoVariantClear@4 + shutdown@8 patch
grimd34th [Mon, 5 Nov 2012 02:00:57 +0000 (21:00 -0500)]
VariantClear@4 + shutdown@8 patch

merged 2 windows:LIBS lines so they happen when they need to (#976)
added -loleaut32 to fix VariantClear
moved -lws2_32 and others to existing windows:LIBS line

12 years agoRPC: HTTP server uses its own ReadHTTPRequestLine()
Jeff Garzik [Sun, 4 Nov 2012 22:16:46 +0000 (17:16 -0500)]
RPC: HTTP server uses its own ReadHTTPRequestLine()
rather than reusing ReadHTTPStatus() from the client mode.

The following additional HTTP request validations are added, both in line with
existing HTTP client practice:

1) HTTP method must be GET or POST.  Most clients use POST, some
   use GET.  Either way, this continues to work.
2) HTTP URI must start with "/" character.
   Normal URI is "/" (a 1-char string), so this is fine.

12 years agoRPC, cosmetic: push down ReadHTTPStatus() calls into ReadHTTP() callers
Jeff Garzik [Sun, 4 Nov 2012 21:06:38 +0000 (16:06 -0500)]
RPC, cosmetic: push down ReadHTTPStatus() calls into ReadHTTP() callers

ReadHTTPStatus() is currently overloaded:  In client mode, it properly parses
and receives an HTTP status line.  In server mode, it incorrectly parses the
HTTP request line as an HTTP status line.

This server mode bug has never mattered, because the RPC server never
cared about the URI (path) provided in the HTTP request.  That will change in
the future, so go ahead and begin fixing the problem.

This patch is cosmetic, and should result in NO behavior changes.

Further renames:
ReadHTTPHeader -> ReadHTTPHeaders
ReadHTTP -> ReadHTTPMessage

12 years agoCache size optimizations
Pieter Wuille [Sun, 4 Nov 2012 16:11:48 +0000 (17:11 +0100)]
Cache size optimizations

12 years agoRemove -detachdb and stop's detach argument.
Pieter Wuille [Sun, 4 Nov 2012 11:48:45 +0000 (12:48 +0100)]
Remove -detachdb and stop's detach argument.

As the only BDB database left is the wallet, and it is always
detached.

Also remove IsChainFile() predicate and related chainfile-specific
logic.

12 years agoremove printf redefinition from bitcoinrpc.cpp
Philip Kaufmann [Sun, 4 Nov 2012 10:24:54 +0000 (11:24 +0100)]
remove printf redefinition from bitcoinrpc.cpp

- as the redefiniton of printf happens in util.h, which is included in
  bitcoinrpc.cpp, we don't need another redefinition

12 years agoMerge pull request #1971 from sipa/bugfix_norelayspent
Pieter Wuille [Sat, 3 Nov 2012 18:51:13 +0000 (11:51 -0700)]
Merge pull request #1971 from sipa/bugfix_norelayspent

Bugfix: do not keep relaying spent wallet transactions

12 years agoMerge pull request #1973 from sipa/comconst
Pieter Wuille [Sat, 3 Nov 2012 18:50:47 +0000 (11:50 -0700)]
Merge pull request #1973 from sipa/comconst

Comments for constants

12 years agoComments for constants
Pieter Wuille [Fri, 2 Nov 2012 23:14:43 +0000 (00:14 +0100)]
Comments for constants

12 years agoMerge pull request #1972 from sipa/virtcoinsview
Pieter Wuille [Fri, 2 Nov 2012 00:36:54 +0000 (17:36 -0700)]
Merge pull request #1972 from sipa/virtcoinsview

Add virtual destructor to CCoinsView

12 years agoAdd virtual destructor to CCoinsView
Pieter Wuille [Thu, 1 Nov 2012 21:53:54 +0000 (22:53 +0100)]
Add virtual destructor to CCoinsView

12 years agoBugfix: do not keep relaying spent wallet transactions
Pieter Wuille [Thu, 1 Nov 2012 14:52:25 +0000 (15:52 +0100)]
Bugfix: do not keep relaying spent wallet transactions

The original test (checking whether the transaction occurs in the
txindex) is not usable anymore, as it will miss anything already
fully spent. However, as merkle transactions (and by extension,
wallet transactions) track which block they were last seen being
included in, we can use that to determine the need for
rebroadcasting.

12 years agoFixed making leveldb with custom CFLAGS/CXXFLAGS in the same way as makefile.unix
Arnav Singh [Thu, 1 Nov 2012 15:29:17 +0000 (08:29 -0700)]
Fixed making leveldb with custom CFLAGS/CXXFLAGS in the same way as makefile.unix

12 years agoMerge pull request #1923 from Diapolo/Qt_tooltips
Wladimir J. van der Laan [Thu, 1 Nov 2012 07:26:35 +0000 (00:26 -0700)]
Merge pull request #1923 from Diapolo/Qt_tooltips

Bitcoin-Qt: use statustips in addition to tooltips

12 years agoBitcoin-Qt: use statustips in addition to tooltips
Philip Kaufmann [Fri, 12 Oct 2012 14:08:47 +0000 (16:08 +0200)]
Bitcoin-Qt: use statustips in addition to tooltips

- add setStatusTip() in addition to setTooltip() where it makes sense
- add only setStatusTip() if GUI element is only used in main- or tray menu

- add an event filter on our BitcoinGUI object to prevent garbelled text
  on the status bar, which happens when we use it for e.g. displaying
  block-sync state and then a QEvent::StatusTip wants to write own text to it

- remove a double translation of "Bitcoin client"

12 years agoMerge pull request #1932 from Diapolo/thread_printf
Wladimir J. van der Laan [Wed, 31 Oct 2012 06:19:35 +0000 (23:19 -0700)]
Merge pull request #1932 from Diapolo/thread_printf

fix some thread related log messages

12 years agoMerge pull request #1963 from sipa/bugfix_nonewblock
Pieter Wuille [Tue, 30 Oct 2012 20:53:11 +0000 (13:53 -0700)]
Merge pull request #1963 from sipa/bugfix_nonewblock

Bugfix: don't crash by trying to write unchanged best block

12 years agoMerge pull request #1967 from TheBlueMatt/leveldbmakefile
Pieter Wuille [Mon, 29 Oct 2012 21:11:55 +0000 (14:11 -0700)]
Merge pull request #1967 from TheBlueMatt/leveldbmakefile

Undo bad gitian update.

12 years agoUndo bad gitian update.
Matt Corallo [Mon, 29 Oct 2012 20:36:25 +0000 (16:36 -0400)]
Undo bad gitian update.

12 years agoMerge pull request #1935 from runeksvendsen/master
Gavin Andresen [Mon, 29 Oct 2012 19:59:28 +0000 (12:59 -0700)]
Merge pull request #1935 from runeksvendsen/master

Add script to contrib/ that verifies authenticity of binaries hosted on SourceForge

12 years agoMerge branch 'rawtx_p2sh'
Gavin Andresen [Mon, 29 Oct 2012 19:49:46 +0000 (15:49 -0400)]
Merge branch 'rawtx_p2sh'

12 years agoMerge pull request #1966 from TheBlueMatt/leveldbmakefile
Gregory Maxwell [Mon, 29 Oct 2012 19:48:55 +0000 (12:48 -0700)]
Merge pull request #1966 from TheBlueMatt/leveldbmakefile

Build script fixes

12 years agoAdd missing calls to ranlib in Windows makefiles
Matt Corallo [Mon, 29 Oct 2012 02:33:35 +0000 (22:33 -0400)]
Add missing calls to ranlib in Windows makefiles

This page took 0.069114 seconds and 4 git commands to generate.