diff options
| author | MarcoFalke <[email protected]> | 2018-04-19 07:58:27 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2018-04-19 07:58:36 -0400 |
| commit | 39cf27faf324057cdcce45a07834fc5aa68a8101 (patch) | |
| tree | 828542ff42d12865e80eb64a2bdc4d1bde1411be /src/interfaces | |
| parent | Merge #12985: Windows: Avoid launching as admin when NSIS installer ends. (diff) | |
| parent | node: Removed unused wallet-related methods from the Node interface. (diff) | |
| download | discoin-39cf27faf324057cdcce45a07834fc5aa68a8101.tar.xz discoin-39cf27faf324057cdcce45a07834fc5aa68a8101.zip | |
Merge #13025: Dead code removal
1bf3f33b46 node: Removed unused wallet-related methods from the Node interface. (Thomas Snider)
b38200459f benchmark: Removed bench/perf.cpp (Thomas Snider)
Pull request description:
Not sure if these should be separate PRs.
First is removal of a platform abstraction for getting cycle counters where possible. Since the benchmarking switch to counting number of iterations over a fixed window instead of counting cycles per iteration, these are unused.
Second is removal of a few methods from the Node interface that seem vestigial from when the concepts of wallet/node were not as clearly separated.
Tree-SHA512: de1460a7d4473ca19db4e2ca845185c63c765d12462c2685044a1f27dedab266cd908bc52235a881a7ad98bc251a4abf4eae523e5f599c169e3511e489f19a0d
Diffstat (limited to 'src/interfaces')
| -rw-r--r-- | src/interfaces/node.cpp | 3 | ||||
| -rw-r--r-- | src/interfaces/node.h | 9 |
2 files changed, 0 insertions, 12 deletions
diff --git a/src/interfaces/node.cpp b/src/interfaces/node.cpp index 919748f94..ddd5496a8 100644 --- a/src/interfaces/node.cpp +++ b/src/interfaces/node.cpp @@ -216,9 +216,6 @@ class NodeImpl : public Node return result; } CFeeRate getDustRelayFee() override { return ::dustRelayFee; } - CFeeRate getFallbackFee() override { CHECK_WALLET(return CWallet::fallbackFee); } - CFeeRate getPayTxFee() override { CHECK_WALLET(return ::payTxFee); } - void setPayTxFee(CFeeRate rate) override { CHECK_WALLET(::payTxFee = rate); } UniValue executeRpc(const std::string& command, const UniValue& params, const std::string& uri) override { JSONRPCRequest req; diff --git a/src/interfaces/node.h b/src/interfaces/node.h index f375af2f1..84e869100 100644 --- a/src/interfaces/node.h +++ b/src/interfaces/node.h @@ -173,15 +173,6 @@ public: //! Get dust relay fee. virtual CFeeRate getDustRelayFee() = 0; - //! Get fallback fee. - virtual CFeeRate getFallbackFee() = 0; - - //! Get pay tx fee. - virtual CFeeRate getPayTxFee() = 0; - - //! Set pay tx fee. - virtual void setPayTxFee(CFeeRate rate) = 0; - //! Execute rpc command. virtual UniValue executeRpc(const std::string& command, const UniValue& params, const std::string& uri) = 0; |