aboutsummaryrefslogtreecommitdiff
path: root/src/p2p/p2p_protocol_defs.h (follow)
AgeCommit message (Collapse)AuthorFilesLines
2017-08-23print peer id in 0 padded hex for consistencymoneromooo-monero1-0/+7
2017-08-07Merge pull request #2234Riccardo Spagni1-0/+2
214fd81e some include cleanup (moneromooo-monero)
2017-07-31some include cleanupmoneromooo-monero1-0/+2
2017-07-27move get_proof_of_trust_hash from util.h to p2p_protocol_defs.hmoneromooo-monero1-0/+8
This avoids having to include p2p_protocol_defs.h in util.h, as util.h is used a lot, and p2p_protocol_defs.h includes a lot of other things that most users don't need.
2017-06-28Remove typeid use in network_addressmoneromooo-monero1-2/+2
Since I had to add an ID to the derived classes anyway, this can be used instead. This removes an apparently pointless warning from CLANG too.
2017-05-27abstracted nework addressesmoneromooo-monero1-23/+98
All code which was using ip and port now uses a new IPv4 object, subclass of a new network_address class. This will allow easy addition of I2P addresses later (and also IPv6, etc). Both old style and new style peer lists are now sent in the P2P protocol, which is inefficient but allows peers using both codebases to talk to each other. This will be removed in the future. No other subclasses than IPv4 exist yet.
2017-05-05Merge pull request #1701Riccardo Spagni1-0/+7
8277e67f Add anchor connections (Miguel Herranz)
2017-02-21update copyright year, fix occasional lack of newline at line endRiccardo Spagni1-1/+1
2017-02-10Add anchor connectionsMiguel Herranz1-0/+7
Based on https://eprint.iacr.org/2015/263.pdf 4. Anchor connections. Peer list serialisation version bumped to 5.
2017-01-22Replace BOOST_FOREACH with C++11 ranged forMiguel Herranz1-1/+1
2016-11-09add lightweight block propagation ("fluffy blocks")Dion Ahmetaj1-0/+23
Added a new command to the P2P protocol definitions to allow querying for support flags. Implemented handling of new support flags command in net_node. Changed for_each callback template to include support flags. Updated print_connections command to show peer support flags. Added p2p constant for signaling fluffy block support. Added get_pool_transaction function to cryptnote_core. Added new commands to cryptonote protocol for relaying fluffy blocks. Implemented handling of fluffy block command in cryptonote protocol. Enabled fluffy block support in node initial configuration. Implemented get_testnet function in cryptonote_core. Made it so that fluffy blocks only run on testnet.
2015-12-31updated copyright yearRiccardo Spagni1-1/+1
2015-01-02year updated in licenseRiccardo Spagni1-1/+1
2014-09-15Fix time_t serialization issueZachary Michaels1-1/+1
On 32-bit MinGW-w64, time_t is int32_t. The existing code was serializing time_t directly and implicitly assuming that time_t is int64_t. This commit formalizes that assumption by serializing int64_t directly and casting to time_t where appropriate. Thanks go to greatwolf for reporting this issue. monero-project/bitmonero#88
2014-07-23License updated to BSD 3-clausefluffypony1-3/+29
2014-04-30various fixes to allow mac osx compilationmydesktop1-2/+2
2014-03-20some fixesAntonio Juarez1-9/+9
2014-03-03moved all stuff to githubAntonio Juarez1-0/+315