aboutsummaryrefslogtreecommitdiff
path: root/src/alert.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Re-introduce alert functionality (#1470)Ross Nicoll2018-09-191-0/+246
| | | Re-introduce alert functionality removed from Bitcoin upstream
* Remove p2p alert handlingBtcDrak2016-03-181-266/+0
|
* Merge pull request #7205Wladimir J. van der Laan2016-01-051-1/+1
|\ | | | | | | | | | | fa71669 [devtools] Use git pretty-format for year parsing (MarcoFalke) fa24439 Bump copyright headers to 2015 (MarcoFalke) fa6ad85 [devtools] Rewrite fix-copyright-headers.py (MarcoFalke)
| * Bump copyright headers to 2015MarcoFalke2015-12-131-1/+1
| |
* | net: Add and document network messages in protocol.hWladimir J. van der Laan2015-12-101-1/+1
|/ | | | | | | | | - Avoids string typos (by making the compiler check) - Makes it easier to grep for handling/generation of a certain message type - Refer directly to documentation by following the symbol in IDE - Move list of valid message types to protocol.cpp: protocol.cpp is a more appropriate place for this, and having the array there makes it easier to keep things consistent.
* TRIVIAL: Missing includesJorge Timón2015-07-231-0/+1
|
* use const references where appropriatePhilip Kaufmann2015-06-041-2/+2
|
* Chainparams: Decouple CAlert from CChainParamsJorge Timón2015-04-041-5/+4
|
* Remove whitespaces before double colon in errors and logsPavel Janík2015-01-311-1/+1
|
* Added "Core" to copyright headerssandakersmann2014-12-191-1/+1
| | | | | Github-Pull: #5494 Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
* minor code style cleanup after recent mergesPhilip Kaufmann2014-11-041-2/+2
| | | | | - add a missing license header - correct some header orderings etc.
* Merge pull request #5162Wladimir J. van der Laan2014-11-041-1/+1
|\ | | | | | | | | | | 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)
| * boost: moveonly: split CPubKey and friends to new filesCory Fields2014-10-311-1/+1
| |
* | Merge pull request #5169Wladimir J. van der Laan2014-11-031-0/+3
|\ \ | |/ |/| | | 20a5f61 Don't relay alerts to peers before version negotiation (Wladimir J. van der Laan)
| * Don't relay alerts to peers before version negotiationWladimir J. van der Laan2014-10-291-0/+3
| | | | | | | | Fixes #1436
* | Separate protocol versioning from clientversionCory Fields2014-10-291-0/+1
|/
* Refactor -alertnotify codeGavin Andresen2014-10-091-16/+21
| | | | Refactor common -alertnotify code into static CAlert::Notify method.
* Split up util.cpp/hWladimir J. van der Laan2014-08-261-0/+1
| | | | | | | | | | | | | | | | Split up util.cpp/h into: - string utilities (hex, base32, base64): no internal dependencies, no dependency on boost (apart from foreach) - money utilities (parsesmoney, formatmoney) - time utilities (gettime*, sleep, format date): - and the rest (logging, argument parsing, config file parsing) The latter is basically the environment and OS handling, and is stripped of all utility functions, so we may want to rename it to something else than util.cpp/h for clarity (Matt suggested osinterface). Breaks dependency of sha256.cpp on all the things pulled in by util.
* Remove all other print() methodsWladimir J. van der Laan2014-08-201-5/+0
| | | | All unused.
* Move network-time related functions to timedata.cpp/hWladimir J. van der Laan2014-06-251-0/+1
| | | | | The network time-offset-mangement functions from util.cpp are moved to timedata.(cpp|h). This breaks the dependency of util on netbase.
* Replace virtual methods with static attributes, chainparams.h depends onjtimon2014-06-041-0/+1
| | | | protocol.h instead of the other way around
* Fixed compile error on Debian jessie (gcc version 4.8.2 (Debian 4.8.2-16))Meeh2014-03-181-0/+1
|
* Get rid of C99 PRI?64 usage in source filesWladimir J. van der Laan2014-02-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | Amend to d5f1e72. It turns out that BerkelyDB was including inttypes.h indirectly, so we cannot fix this with just macros. Trivial commit: apply the following script to all .cpp and .h files: # Middle sed -i 's/"PRIx64"/x/g' "$1" sed -i 's/"PRIu64"/u/g' "$1" sed -i 's/"PRId64"/d/g' "$1" # Initial sed -i 's/PRIx64"/"x/g' "$1" sed -i 's/PRIu64"/"u/g' "$1" sed -i 's/PRId64"/"d/g' "$1" # Trailing sed -i 's/"PRIx64/x"/g' "$1" sed -i 's/"PRIu64/u"/g' "$1" sed -i 's/"PRId64/d"/g' "$1" After this commit, `git grep` for PRI.64 should turn up nothing except the defines in util.h.
* Don't use PRIx64 formatting derives from inttypes.hWladimir J. van der Laan2014-02-221-1/+0
| | | | | | | | | | | | As the tinyformat-based formatting system (introduced in b77dfdc) is type-safe, no special format characters are needed to specify sizes. Tinyformat can support (ignore) the C99 prefixes such as "ll" but chokes on MSVC's inttypes.h defines prefixes such as "I64X". So don't include inttypes.h and define our own for compatibility. (an alternative would be to sweep the entire codebase using sed -i to get rid of the size specifiers but this has less diff impact)
* Copyright header updates s/2013/2014 on files whose last git commit was done ↵gubatron2014-02-091-1/+1
| | | | | | in 2014. contrib/devtools/fix-copyright-headers.py script to be able to perform this maintenance task with ease during the rest of the year, every year. Modifications to contrib/devtools/README.md to document what fix-copyright-headers.py does.
* Remove redundant .c_str()sWladimir J. van der Laan2014-01-231-5/+5
| | | | | | | After the tinyformat switch sprintf() family functions support passing actual std::string objects. Remove unnecessary c_str calls (236 of them) in logging and formatting.
* misc small changes to polish after include cleanupPhilip Kaufmann2013-11-111-3/+4
|
* Refactor: pull alert string sanitization into utilGavin Andresen2013-11-111-9/+1
|
* Cleanup code using forward declarations.Brandon Dahler2013-11-101-9/+12
| | | | | | | | | Use misc methods of avoiding unnecesary header includes. Replace int typedefs with int##_t from stdint.h. Replace PRI64[xdu] with PRI[xdu]64 from inttypes.h. Normalize QT_VERSION ifs where possible. Resolve some indirect dependencies as direct ones. Remove extern declarations from .cpp files.
* Replace printf with LogPrintf / LogPrintGavin Andresen2013-09-181-5/+5
|
* Introduce a CChainParameters singleton class and regtest mode.Mike Hearn2013-06-191-4/+1
| | | | | | | | | | | | | The new class is accessed via the Params() method and holds most things that vary between main, test and regtest networks. The regtest mode has two purposes, one is to run the bitcoind/bitcoinj comparison tool which compares two separate implementations of the Bitcoin protocol looking for divergence. The other is that when run, you get a local node which can mine a single block instantly, which is highly convenient for testing apps during development as there's no need to wait 10 minutes for a block on the testnet.
* CSecret/CKey -> CKey/CPubKey split/refactorPieter Wuille2013-05-301-3/+1
|
* -alertnotify=<cmd>Gavin Andresen2013-03-191-2/+31
| | | | | | Runs a shell command when an AppliesToMe() alert is received. %s in the <cmd> string is replaced with the alert.strStatusBar message.
* Give testnet it's own alert key.Gavin Andresen2012-08-281-1/+4
|
* Refactor: move alert code from main to alert.cpp/hGavin Andresen2012-08-281-0/+236