|
|
@ -238,12 +238,8 @@ Threads
|
|
|
|
|
|
|
|
|
|
|
|
- DumpAddresses : Dumps IP addresses of nodes to peers.dat.
|
|
|
|
- DumpAddresses : Dumps IP addresses of nodes to peers.dat.
|
|
|
|
|
|
|
|
|
|
|
|
- ThreadFlushWalletDB : Close the wallet.dat file if it hasn't been used in 500ms.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- ThreadRPCServer : Remote procedure call handler, listens on port 8332 for connections and services them.
|
|
|
|
- ThreadRPCServer : Remote procedure call handler, listens on port 8332 for connections and services them.
|
|
|
|
|
|
|
|
|
|
|
|
- BitcoinMiner : Generates bitcoins (if wallet is enabled).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- Shutdown : Does an orderly shutdown of everything.
|
|
|
|
- Shutdown : Does an orderly shutdown of everything.
|
|
|
|
|
|
|
|
|
|
|
|
Ignoring IDE/editor files
|
|
|
|
Ignoring IDE/editor files
|
|
|
@ -380,6 +376,18 @@ C++ data structures
|
|
|
|
- *Rationale*: Easier to understand what is happening, thus easier to spot mistakes, even for those
|
|
|
|
- *Rationale*: Easier to understand what is happening, thus easier to spot mistakes, even for those
|
|
|
|
that are not language lawyers
|
|
|
|
that are not language lawyers
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- Initialize all non-static class members where they are defined
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- *Rationale*: Initializing the members in the declaration makes it easy to spot uninitialized ones,
|
|
|
|
|
|
|
|
and avoids accidentally reading uninitialized memory
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```cpp
|
|
|
|
|
|
|
|
class A
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
uint32_t m_count{0};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Strings and formatting
|
|
|
|
Strings and formatting
|
|
|
|
------------------------
|
|
|
|
------------------------
|
|
|
|
|
|
|
|
|
|
|
@ -415,11 +423,11 @@ member name:
|
|
|
|
```c++
|
|
|
|
```c++
|
|
|
|
class AddressBookPage
|
|
|
|
class AddressBookPage
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Mode mode;
|
|
|
|
Mode m_mode;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
AddressBookPage::AddressBookPage(Mode _mode) :
|
|
|
|
AddressBookPage::AddressBookPage(Mode _mode) :
|
|
|
|
mode(_mode)
|
|
|
|
m_mode(_mode)
|
|
|
|
...
|
|
|
|
...
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|