No description
Find a file
Dimitrios Siganos 275a545062
Socket timeout tidyup (#3704)
* socket_timeout unit tests

* Rename socket::stop_timer to socket:set_last_completion

All stop timer does is to set a variable. It is a simply setter function.
It is confusing to call it stop_timer because it implies that it does
something more than just set a timestamp.

* Rename start_timer() to set_next_deadline()

* Remove network constant socket_dev_idle_timeout

We do not need it.

* Rename update_last_receive_time() to set_last_receive_time()

To make it obvious it is setter function and to make it consistent with
other setter functions.

* Minor code improvement - no functional change

* Rename the nano::socket concept of deadline to timeout

A deadline makes people imagine a fixed point in time, a timestamp.
However, socket::next_deadline is a timeout value and not a deadline.
It signifies the seconds of inactivity that would cause a socket timeout.

Renames:
set_next_deadline          -> set_default_timeout
set_next_deadline(timeout) -> set_timeout(timeout)
io_timeout                 -> default_timeout
timeout_set                -> set_default_timeout_value
next_deadline              -> timeout

* Add some comments to nano::socket class

* Remove needless code

* Use guard ifs to make nano::socket::async_write more readable
2022-02-03 13:14:09 +00:00
.github Adds the code-inspector script (#3675) 2022-01-18 15:54:15 -03:00
api/flatbuffers Add Flatbuffers schema evolution rules to IDL (#2644) 2020-04-21 12:11:01 -05:00
ci Adds the code-inspector script (#3675) 2022-01-18 15:54:15 -03:00
CL Fix typo in comment 2017-12-28 01:24:23 -06:00
cmake Weekly Coverage Runs to coveralls.io (#3055) 2021-07-21 05:30:24 -07:00
coverage Cleanup qt_system remnants (#3189) (#3488) 2021-10-12 13:14:41 +01:00
cpptoml@5399650056 TOML config file support and migration (#2221) 2019-08-23 18:49:32 +02:00
crypto Update Crypto++ to release 8.5 (#3354) 2021-06-25 12:57:06 +02:00
debian-control cmake format pass (#3053) 2020-11-19 08:46:48 -08:00
diskhash@0b81937e1b Updated diskhash repo and code version (#3375) 2021-07-09 11:31:37 -03:00
docker Weekly Coverage Runs to coveralls.io (#3055) 2021-07-21 05:30:24 -07:00
etc GPG public key for Dimitrios Siganos 2021-04-21 16:10:01 +01:00
flatbuffers@a9a295fecf Update FlatBuffers to release 2.0.0 2021-06-24 13:38:24 +03:00
gtest@e2239ee604 Update GoogleTest to release 1.11.0 (#3352) 2021-06-25 12:57:24 +02:00
images Update images for README and QT wallet to be new symbol (#3586) 2021-12-21 09:50:27 -06:00
lmdb@e931980823 update lmdb to 0.9.25 (#2834) 2020-07-24 11:33:36 -07:00
miniupnp@2df8120326 Updating miniupnp to v2.2.3 (#3541) 2021-11-02 12:41:05 +00:00
nano Socket timeout tidyup (#3704) 2022-02-03 13:14:09 +00:00
nano-pow-server@00591aeae9 Shared Boost in distribution packages (#2813) 2020-06-16 10:37:37 -04:00
rocksdb@38e99ec803 Update RocksDB version to 6.13.3 (#3010) 2020-10-28 18:10:30 +00:00
systest Add systests to CI and fix for rocksdb mode (issue #3447) (issue #3452) (#3468) 2021-09-28 16:52:58 +01:00
util Update some sections, fix headers and adjust PR finding approach to i… (#3660) 2022-01-11 09:10:00 -06:00
valgrind Use the MDB_NOMEMINIT flag with the ledger db environment (#2077) 2019-06-25 12:11:21 +01:00
.clang-format Formatting rules update -- indentation rules improvements (#3506) 2021-10-19 14:23:07 +03:00
.gitignore Cleanup qt_system remnants (#3189) (#3488) 2021-10-12 13:14:41 +01:00
.gitlab-ci.yml adding support for rpm building (#1175) 2019-02-15 11:23:58 -05:00
.gitmodules Updated diskhash repo and code version (#3375) 2021-07-09 11:31:37 -03:00
asan_blacklist Fixing an asan issue. 2014-11-04 22:01:22 -06:00
CMakeLists.txt When running with options that enable ubsan, define ROCKSDB_UBSAN_RUN which disables ubsan instrumentation for some functions within rocksdb that are false-positives. (#3579) 2021-12-09 14:04:59 +00:00
CONTRIBUTING.md Add basic contributing file with links to docs for details (#3650) 2022-01-05 10:03:57 -06:00
doxygen.config Rename internal project bits from RaiBlocks to Nano (#1504) 2018-12-28 14:58:50 -06:00
Info.plist.in add test network to build artifacts for non DB tags (#3000) 2020-10-20 10:04:56 -07:00
LICENSE Update LICENSE (#3669) 2022-01-14 15:38:03 -03:00
logo.png Update images for README and QT wallet to be new symbol (#3586) 2021-12-21 09:50:27 -06:00
Nano.icns Update images for README and QT wallet to be new symbol (#3586) 2021-12-21 09:50:27 -06:00
Nano.ico Update images for README and QT wallet to be new symbol (#3586) 2021-12-21 09:50:27 -06:00
Nano.rc Rename internal project bits from RaiBlocks to Nano (#1504) 2018-12-28 14:58:50 -06:00
nanocurrency-beta.spec.in Enforce Cxx17 (#2878) 2020-08-12 10:13:31 +01:00
nanocurrency.spec.in Enforce Cxx17 (#2878) 2020-08-12 10:13:31 +01:00
qt.conf Found the correct magic recipe to get packaging working. 2014-11-09 18:51:16 -06:00
README.md Update README.md 2021-07-26 17:28:46 +10:00
rep_weights_beta.bin Update beta rep weights file (#3566) 2021-11-22 18:25:37 +00:00
rep_weights_live.bin Update live rep weights file: (#3565) 2021-11-22 18:24:45 +00:00
resources.qrc fixed the inclusion of the logo file into the binary using QT resources 2017-04-20 13:19:26 -05:00
SECURITY.md Remove wezrule from security policy (#3396) 2021-07-26 11:09:08 -05:00
tsan_clang_blacklist TSAN suppressions file (#1941) 2019-04-30 16:55:32 +01:00
tsan_suppressions Add suppressions for Rijndael::Base::FillEncTable and Rijndael::Base::FillDecTable. There is a race condition when initializing these tables but since their contents is static, the fields will always have the correct, constant values. 2021-11-22 11:58:30 +00:00
valgrind.supp Valgrind fixes & suppressions (#1814) 2019-03-15 13:55:45 +03:00

Logo

Live Artifacts Beta Artifacts GitHub release (latest by date) GitHub tag (latest by date) Coverage Status Tests RelWithDebug Tests Discord


What is Nano?

Nano is a digital payment protocol designed to be accessible and lightweight, with a focus on removing inefficiencies present in other cryptocurrencies. With ultrafast transactions and zero fees on a secure, green and decentralized network, this makes Nano ideal for everyday transactions.


Guides & Documentation

Other documentation details can be found at https://docs.nano.org.



Want to Contribute?

Please see the contributors guide.


Contact us

We want to hear about any trouble, success, delight, or pain you experience when using Nano. Let us know by filing an issue, joining us on Reddit, or joining us on Discord.