neobytes/src
Philip Kaufmann 6715efb9ca [Qt] Payment request expiration bug fix (re-done)
- this is based on #4122 (which can be closed)

Currently a payment request is only checked for expiration upon receipt.
It should be checked again immediately before sending coins to prevent
the user from paying to an expired invoice which would then require a
customer service interaction.

- add static verifyExpired() function to PaymentServer to be able to use
  the same validation code in GUI and unit-testing code
- extend unit tests to use that function and also add an unit test which
  overflows, because payment requests allow expires as uint64, whereas we
  use int64_t for verification of expired payment requests
2015-01-15 09:08:22 +01:00
..
compat Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
config build: move bitcoin-config.h to its own directory 2014-06-21 19:47:43 +02:00
crypto Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
json json_spirit: #include <stdint.h> 2014-05-13 11:41:59 +02:00
leveldb Merge src/leveldb changes for LevelDB 1.18. 2014-10-16 12:23:50 -07:00
obj
obj-test
primitives Merge pull request #5520 2015-01-06 20:01:00 +01:00
qt [Qt] Payment request expiration bug fix (re-done) 2015-01-15 09:08:22 +01:00
script Merge pull request #5143 2015-01-08 12:01:22 +01:00
secp256k1 Update libsecp256k1 2014-12-11 01:58:25 +01:00
test Fix tests after #5413 2015-01-08 12:53:05 +01:00
univalue Remove references to X11 licence 2014-12-16 15:56:50 +08:00
.clang-format Update coding style and add .clang-format 2014-07-28 22:08:13 +02:00
addrman.cpp Replace GetLow64 with GetCheapHash 2015-01-05 15:45:34 +01:00
addrman.h Fix all header defines 2014-11-03 16:16:40 +01:00
alert.cpp Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
alert.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
allocators.cpp Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
allocators.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
amount.cpp Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
amount.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
arith_uint256.cpp arith_uint256: remove initialization from byte vector 2015-01-05 15:45:36 +01:00
arith_uint256.h arith_uint256: remove initialization from byte vector 2015-01-05 15:45:36 +01:00
base58.cpp Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
base58.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
bitcoin-cli-res.rc Remove references to X11 licence 2014-12-16 15:56:50 +08:00
bitcoin-cli.cpp namespace: remove boost namespace pollution 2015-01-02 15:12:03 -05:00
bitcoin-tx.cpp Merge pull request #5513 2015-01-06 20:32:45 +01:00
bitcoind-res.rc Remove references to X11 licence 2014-12-16 15:56:50 +08:00
bitcoind.cpp Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
bloom.cpp Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
bloom.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
chain.cpp Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
chain.h Use arith_uint256 where necessary 2015-01-05 15:45:35 +01:00
chainparams.cpp Merge pull request #5513 2015-01-06 20:32:45 +01:00
chainparams.h Merge pull request #5598 2015-01-06 18:12:58 +01:00
chainparamsbase.cpp Merge pull request #5513 2015-01-06 20:32:45 +01:00
chainparamsbase.h Merge pull request #5598 2015-01-06 18:12:58 +01:00
chainparamsseeds.h Update seed IPs, based on bitcoin.sipa.be crawler data 2015-01-05 17:23:23 +01:00
checkpoints.cpp Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
checkpoints.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
checkqueue.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
clientversion.cpp Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
clientversion.h Bump project-wide COPYRIGHT_YEAR to 2015 2015-01-02 10:53:13 +01:00
coincontrol.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
coins.cpp Merge pull request #5597 2015-01-07 13:03:41 +01:00
coins.h Replace direct use of 0 with SetNull and IsNull 2015-01-05 15:45:34 +01:00
compat.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
compressor.cpp Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
compressor.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
core_io.h Merge pull request #5499 2014-12-31 10:50:06 +01:00
core_read.cpp namespace: drop most boost namespaces and a few header cleanups 2015-01-02 15:12:03 -05:00
core_write.cpp Replace direct use of 0 with SetNull and IsNull 2015-01-05 15:45:34 +01:00
crypter.cpp Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
crypter.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
db.cpp namespace: remove boost namespace pollution 2015-01-02 15:12:03 -05:00
db.h Merge pull request #5520 2015-01-06 20:01:00 +01:00
eccryptoverify.cpp Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
eccryptoverify.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
ecwrapper.cpp Improve robustness of DER recoding code 2015-01-12 08:59:03 +01:00
ecwrapper.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
hash.cpp Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
hash.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
init.cpp Catch UTXO set read errors and shutdown 2015-01-08 15:51:15 +01:00
init.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
key.cpp Use arith_uint256 where necessary 2015-01-05 15:45:35 +01:00
key.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
keystore.cpp Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
keystore.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
leveldbwrapper.cpp Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
leveldbwrapper.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
limitedmap.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
main.cpp Merge pull request #5608 2015-01-12 11:24:47 +01:00
main.h Merge pull request #5589 2015-01-08 12:38:10 +01:00
Makefile.am Merge pull request #5542 2015-01-08 09:32:36 +01:00
Makefile.qt.include Merge pull request #5542 2015-01-08 09:32:36 +01:00
Makefile.qttest.include build: make a distinction between static app ldflags and static lib ldflags 2014-11-19 22:08:27 -05:00
Makefile.test.include tests: run sanity checks in tests too 2015-01-05 22:34:47 -05:00
merkleblock.cpp Replace direct use of 0 with SetNull and IsNull 2015-01-05 15:45:34 +01:00
merkleblock.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
miner.cpp Use arith_uint256 where necessary 2015-01-05 15:45:35 +01:00
miner.h Remove declaration of no longer existent CheckWork 2015-01-02 17:30:00 +01:00
mruset.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
net.cpp Merge pull request #5513 2015-01-06 20:32:45 +01:00
net.h Merge pull request #5476 2015-01-02 17:54:21 +01:00
netbase.cpp Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
netbase.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
noui.cpp Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
noui.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
pow.cpp Use arith_uint256 where necessary 2015-01-05 15:45:35 +01:00
pow.h Use arith_uint256 where necessary 2015-01-05 15:45:35 +01:00
protocol.cpp Replace direct use of 0 with SetNull and IsNull 2015-01-05 15:45:34 +01:00
protocol.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
pubkey.cpp Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
pubkey.h Replace direct use of 0 with SetNull and IsNull 2015-01-05 15:45:34 +01:00
random.cpp Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
random.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
rest.cpp Replace direct use of 0 with SetNull and IsNull 2015-01-05 15:45:34 +01:00
rpcblockchain.cpp String conversions uint256 -> uint256S 2015-01-05 15:45:35 +01:00
rpcclient.cpp Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
rpcclient.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
rpcdump.cpp Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
rpcmining.cpp Use arith_uint256 where necessary 2015-01-05 15:45:35 +01:00
rpcmisc.cpp namespace: drop most boost namespaces and a few header cleanups 2015-01-02 15:12:03 -05:00
rpcnet.cpp Merge pull request #5476 2015-01-02 17:54:21 +01:00
rpcprotocol.cpp namespace: drop most boost namespaces and a few header cleanups 2015-01-02 15:12:03 -05:00
rpcprotocol.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
rpcrawtransaction.cpp Merge pull request #5513 2015-01-06 20:32:45 +01:00
rpcserver.cpp namespace: remove boost namespace pollution 2015-01-02 15:12:03 -05:00
rpcserver.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
rpcwallet.cpp Merge pull request #5513 2015-01-06 20:32:45 +01:00
serialize.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
streams.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
sync.cpp Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
sync.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
threadsafety.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
timedata.cpp Merge pull request #5476 2015-01-02 17:54:21 +01:00
timedata.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
tinyformat.h Move *Version() functions to version.h/cpp 2014-08-26 13:25:21 +02:00
txdb.cpp Replace direct use of 0 with SetNull and IsNull 2015-01-05 15:45:34 +01:00
txdb.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
txmempool.cpp Decouple miner.o and txmempool.o from CTxUndo 2014-12-27 16:01:12 +01:00
txmempool.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
ui_interface.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
uint256.cpp uint256->arith_uint256 blob256->uint256 2015-01-05 15:45:35 +01:00
uint256.h uint256->arith_uint256 blob256->uint256 2015-01-05 15:45:35 +01:00
undo.h MOVEONLY: CBlockUndo from main.h to undo.h 2014-12-27 16:01:31 +01:00
util.cpp Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
util.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
utilmoneystr.cpp Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
utilmoneystr.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
utilstrencodings.cpp Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
utilstrencodings.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
utiltime.cpp Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
utiltime.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
version.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
wallet_ismine.cpp Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
wallet_ismine.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
wallet.cpp Replace direct use of 0 with SetNull and IsNull 2015-01-05 15:45:34 +01:00
wallet.h Replace direct use of 0 with SetNull and IsNull 2015-01-05 15:45:34 +01:00
walletdb.cpp Merge pull request #5513 2015-01-06 20:32:45 +01:00
walletdb.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00