Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
661 changes: 661 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

21 changes: 0 additions & 21 deletions LICENSE.md

This file was deleted.

3 changes: 2 additions & 1 deletion include/jsonrpccxx/batchclient.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#pragma once

#include "client.hpp"
Expand Down Expand Up @@ -98,4 +99,4 @@ namespace jsonrpccxx {
}
}
};
}
}
3 changes: 2 additions & 1 deletion include/jsonrpccxx/client.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#pragma once
#include "common.hpp"
#include "iclientconnector.hpp"
Expand Down Expand Up @@ -89,4 +90,4 @@ namespace jsonrpccxx {
connector.Send(j.dump());
}
};
} // namespace jsonrpccxx
} // namespace jsonrpccxx
3 changes: 2 additions & 1 deletion include/jsonrpccxx/common.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#pragma once
#include <nlohmann/json.hpp>
#include <exception>
Expand Down Expand Up @@ -65,4 +66,4 @@ namespace jsonrpccxx {
json data;
std::string err;
};
} // namespace jsonrpccxx
} // namespace jsonrpccxx
3 changes: 2 additions & 1 deletion include/jsonrpccxx/dispatcher.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#pragma once

#include "common.hpp"
Expand Down Expand Up @@ -103,4 +104,4 @@ namespace jsonrpccxx {
throw JsonRpcException(invalid_request, "invalid request: params field must be an array, object");
}
};
} // namespace jsonrpccxx
} // namespace jsonrpccxx
1 change: 1 addition & 0 deletions include/jsonrpccxx/iclientconnector.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#pragma once
#include <string>

Expand Down
3 changes: 2 additions & 1 deletion include/jsonrpccxx/server.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#pragma once

#include "common.hpp"
Expand Down Expand Up @@ -111,4 +112,4 @@ namespace jsonrpccxx {
}
}
};
}
}
3 changes: 2 additions & 1 deletion include/jsonrpccxx/typemapper.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#pragma once

#include "common.hpp"
Expand Down Expand Up @@ -197,4 +198,4 @@ namespace jsonrpccxx {
};
return GetHandle(function);
}
}
}
3 changes: 2 additions & 1 deletion src/c2pool/bridge/legacy_tracker_bridge.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "legacy_tracker_bridge.hpp"
#include <nlohmann/json.hpp>
#include <core/log.hpp>
Expand Down Expand Up @@ -102,4 +103,4 @@ void LegacyShareTrackerBridge::convert_to_legacy_format(const C2PoolShare& share
}

} // namespace bridge
} // namespace c2pool
} // namespace c2pool
3 changes: 2 additions & 1 deletion src/c2pool/bridge/legacy_tracker_bridge.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#pragma once

#include <memory>
Expand Down Expand Up @@ -74,4 +75,4 @@ class LegacyShareTrackerBridge {
};

} // namespace bridge
} // namespace c2pool
} // namespace c2pool
1 change: 1 addition & 0 deletions src/c2pool/c2pool-qt.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
1 change: 1 addition & 0 deletions src/c2pool/c2pool.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
1 change: 1 addition & 0 deletions src/c2pool/c2pool_node.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
3 changes: 2 additions & 1 deletion src/c2pool/c2pool_refactored.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include <algorithm>
#include <iostream>
#include <fstream>
Expand Down Expand Up @@ -7479,4 +7480,4 @@ int main(int argc, char* argv[]) {
}

return 0;
}
}
1 change: 1 addition & 0 deletions src/c2pool/c2pool_temp.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
3 changes: 2 additions & 1 deletion src/c2pool/difficulty/adjustment_engine.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "adjustment_engine.hpp"
#include <algorithm>
#include <ctime>
Expand Down Expand Up @@ -158,4 +159,4 @@ void DifficultyAdjustmentEngine::adjust_pool_difficulty() {
}

} // namespace difficulty
} // namespace c2pool
} // namespace c2pool
3 changes: 2 additions & 1 deletion src/c2pool/difficulty/adjustment_engine.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#pragma once

#include <core/uint256.hpp>
Expand Down Expand Up @@ -107,4 +108,4 @@ class DifficultyAdjustmentEngine {
};

} // namespace difficulty
} // namespace c2pool
} // namespace c2pool
3 changes: 2 additions & 1 deletion src/c2pool/hashrate/tracker.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "tracker.hpp"
#include <algorithm>
#include <cmath>
Expand Down Expand Up @@ -197,4 +198,4 @@ void HashrateTracker::adjust_difficulty() {
}

} // namespace hashrate
} // namespace c2pool
} // namespace c2pool
3 changes: 2 additions & 1 deletion src/c2pool/hashrate/tracker.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#pragma once

#include <chrono>
Expand Down Expand Up @@ -95,4 +96,4 @@ class HashrateTracker {
};

} // namespace hashrate
} // namespace c2pool
} // namespace c2pool
1 change: 1 addition & 0 deletions src/c2pool/ltc/ltc_coin_test.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include <iostream>

#include <boost/asio.hpp>
Expand Down
1 change: 1 addition & 0 deletions src/c2pool/ltc/ltc_pool_test.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include <iostream>
#include <memory>

Expand Down
3 changes: 2 additions & 1 deletion src/c2pool/main_bch.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// c2pool-bch — Bitcoin Cash (BCH, SHA256d standalone parent, V36) p2pool node
// entry point.
//
Expand Down Expand Up @@ -780,4 +781,4 @@ int main(int argc, char** argv)

// Default / --selftest: drive the live ABLA budget path, then exit.
return run_selftest();
}
}
3 changes: 2 additions & 1 deletion src/c2pool/main_btc.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// c2pool-btc — Bitcoin embedded SPV p2pool node.
//
// PR-B2-net (focused header-sync entry point).
Expand Down Expand Up @@ -1347,4 +1348,4 @@ int main(int argc, char* argv[])
p2p_node.reset();
LOG_INFO << "[BTC] Shutdown complete.";
return 0;
}
}
3 changes: 2 additions & 1 deletion src/c2pool/main_dash.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// c2pool-dash — DASH (X11 standalone parent, older-than-v35 -> V36) p2pool node
// entry point.
//
Expand Down Expand Up @@ -558,4 +559,4 @@ int main(int argc, char** argv)
return run_node(testnet, rpc_endpoint, rpc_conf_path, submit_hex, peer);
}
return run_selftest();
}
}
3 changes: 2 additions & 1 deletion src/c2pool/main_dgb.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// c2pool-dgb — DigiByte Scrypt-only (V36) p2pool node entry point.
//
// Wires the real dgb sharechain/pool TU (pool pillars + score path, ported from
Expand Down Expand Up @@ -1208,4 +1209,4 @@ int main(int argc, char** argv)
// binary exercises real consensus code, then exit cleanly.
(void)want_selftest;
return run_selftest(params);
}
}
3 changes: 2 additions & 1 deletion src/c2pool/merged/coin_broadcaster.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#pragma once

/// Multi-peer P2P broadcaster for any Bitcoin-derived coin daemon.
Expand Down Expand Up @@ -603,4 +604,4 @@ class CoinBroadcaster
};

} // namespace merged
} // namespace c2pool
} // namespace c2pool
3 changes: 2 additions & 1 deletion src/c2pool/merged/coin_peer_manager.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#pragma once

/// Multi-peer manager for coin daemon P2P connections.
Expand Down Expand Up @@ -1060,4 +1061,4 @@ class CoinPeerManager
};

} // namespace merged
} // namespace c2pool
} // namespace c2pool
3 changes: 2 additions & 1 deletion src/c2pool/merged/merged_mining.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "merged_mining.hpp"

#include <core/log.hpp>
Expand Down Expand Up @@ -1742,4 +1743,4 @@ std::vector<MergedMiningManager::ChainInfo> MergedMiningManager::get_chain_infos
}

} // namespace merged
} // namespace c2pool
} // namespace c2pool
3 changes: 2 additions & 1 deletion src/c2pool/merged/merged_mining.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#pragma once

#include <string>
Expand Down Expand Up @@ -438,4 +439,4 @@ class MergedMiningManager
};

} // namespace merged
} // namespace c2pool
} // namespace c2pool
3 changes: 2 additions & 1 deletion src/c2pool/mining_share_tracker.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "mining_share_tracker.hpp"

namespace c2pool {

// Implementation is header-only for now, but this file can be used
// for future complex implementations that need to be in source files

} // namespace c2pool
} // namespace c2pool
3 changes: 2 additions & 1 deletion src/c2pool/mining_share_tracker.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#pragma once

#include "share_types.hpp"
Expand Down Expand Up @@ -243,4 +244,4 @@ class MiningShareTracker {
}
};

} // namespace c2pool
} // namespace c2pool
3 changes: 2 additions & 1 deletion src/c2pool/node/enhanced_node.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#pragma once

// Backward-compat header: resolves c2pool::node::EnhancedC2PoolNode to the
Expand All @@ -15,4 +16,4 @@ namespace node {
using EnhancedC2PoolNode = EnhancedC2PoolNodeT<ltc::Config, ltc::ShareChain, ltc::Peer, ltc::ShareType>;

} // namespace node
} // namespace c2pool
} // namespace c2pool
3 changes: 2 additions & 1 deletion src/c2pool/node/enhanced_node_impl.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#pragma once

// Coin-agnostic template for the enhanced c2pool node.
Expand Down Expand Up @@ -235,4 +236,4 @@ class EnhancedC2PoolNodeT : public core::IMiningNode
};

} // namespace node
} // namespace c2pool
} // namespace c2pool
3 changes: 2 additions & 1 deletion src/c2pool/p2p_share_tracker.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "p2p_share_tracker.hpp"

namespace c2pool {

// Implementation is header-only for now, but this file can be used
// for future complex implementations that need to be in source files

} // namespace c2pool
} // namespace c2pool
3 changes: 2 additions & 1 deletion src/c2pool/p2p_share_tracker.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#pragma once

#include "share_types.hpp"
Expand Down Expand Up @@ -268,4 +269,4 @@ class P2PShareTracker {
}
};

} // namespace c2pool
} // namespace c2pool
3 changes: 2 additions & 1 deletion src/c2pool/payout/developer_payout.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "developer_payout.hpp"
#include <iostream>
#include <fstream>
Expand Down Expand Up @@ -333,4 +334,4 @@ bool PayoutManager::PayoutAllocation::is_valid() const {
}

} // namespace payout
} // namespace c2pool
} // namespace c2pool
3 changes: 2 additions & 1 deletion src/c2pool/payout/developer_payout.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#pragma once

#include <string>
Expand Down Expand Up @@ -131,4 +132,4 @@ class PayoutManager {
};

} // namespace payout
} // namespace c2pool
} // namespace c2pool
Loading
Loading