LCOV - code coverage report
Current view: top level - bld-cov/src/ipc/capnp - mining.capnp.proxy.h (source / functions) Coverage Total Hit
Test: total_coverage.info Lines: 0.0 % 45 0
Test Date: 2025-08-25 05:11:47 Functions: 0.0 % 2 0
Branches: 0.0 % 68 0

             Branch data     Line data    Source code
       1                 :             : // Generated by mpgen from /tmp/cirrus-ci-build/bitcoin-core/src/ipc/capnp/mining.capnp
       2                 :             : 
       3                 :             : #ifndef CAPNP_MINING_CAPNP_PROXY_H
       4                 :             : #define CAPNP_MINING_CAPNP_PROXY_H
       5                 :             : 
       6                 :             : #include <src/ipc/capnp/mining.capnp.h> // IWYU pragma: keep
       7                 :             : #include "interfaces/mining.h" // IWYU pragma: export
       8                 :             : #include <mp/proxy.h>
       9                 :             : 
      10                 :             : #if defined(__GNUC__)
      11                 :             : #pragma GCC diagnostic push
      12                 :             : #if !defined(__has_warning)
      13                 :             : #pragma GCC diagnostic ignored "-Wsuggest-override"
      14                 :             : #elif __has_warning("-Wsuggest-override")
      15                 :             : #pragma GCC diagnostic ignored "-Wsuggest-override"
      16                 :             : #endif
      17                 :             : #endif
      18                 :             : namespace mp {
      19                 :             : template<>
      20                 :             : struct ProxyMethod<ipc::capnp::messages::Mining::IsTestChainParams>
      21                 :             : {
      22                 :             :     static constexpr auto impl = &interfaces::Mining::isTestChain;
      23                 :             : };
      24                 :             : 
      25                 :             : template<>
      26                 :             : struct ProxyMethod<ipc::capnp::messages::Mining::IsInitialBlockDownloadParams>
      27                 :             : {
      28                 :             :     static constexpr auto impl = &interfaces::Mining::isInitialBlockDownload;
      29                 :             : };
      30                 :             : 
      31                 :             : template<>
      32                 :             : struct ProxyMethod<ipc::capnp::messages::Mining::GetTipParams>
      33                 :             : {
      34                 :             :     static constexpr auto impl = &interfaces::Mining::getTip;
      35                 :             : };
      36                 :             : 
      37                 :             : template<>
      38                 :             : struct ProxyMethod<ipc::capnp::messages::Mining::WaitTipChangedParams>
      39                 :             : {
      40                 :             :     static constexpr auto impl = &interfaces::Mining::waitTipChanged;
      41                 :             : };
      42                 :             : 
      43                 :             : template<>
      44                 :             : struct ProxyMethod<ipc::capnp::messages::Mining::CreateNewBlockParams>
      45                 :             : {
      46                 :             :     static constexpr auto impl = &interfaces::Mining::createNewBlock;
      47                 :             : };
      48                 :             : 
      49                 :             : template<>
      50                 :             : struct ProxyMethod<ipc::capnp::messages::Mining::CheckBlockParams>
      51                 :             : {
      52                 :             :     static constexpr auto impl = &interfaces::Mining::checkBlock;
      53                 :             : };
      54                 :             : 
      55                 :             : template<>
      56                 :             : struct ProxyMethod<ipc::capnp::messages::BlockTemplate::GetBlockHeaderParams>
      57                 :             : {
      58                 :             :     static constexpr auto impl = &interfaces::BlockTemplate::getBlockHeader;
      59                 :             : };
      60                 :             : 
      61                 :             : template<>
      62                 :             : struct ProxyMethod<ipc::capnp::messages::BlockTemplate::GetBlockParams>
      63                 :             : {
      64                 :             :     static constexpr auto impl = &interfaces::BlockTemplate::getBlock;
      65                 :             : };
      66                 :             : 
      67                 :             : template<>
      68                 :             : struct ProxyMethod<ipc::capnp::messages::BlockTemplate::GetTxFeesParams>
      69                 :             : {
      70                 :             :     static constexpr auto impl = &interfaces::BlockTemplate::getTxFees;
      71                 :             : };
      72                 :             : 
      73                 :             : template<>
      74                 :             : struct ProxyMethod<ipc::capnp::messages::BlockTemplate::GetTxSigopsParams>
      75                 :             : {
      76                 :             :     static constexpr auto impl = &interfaces::BlockTemplate::getTxSigops;
      77                 :             : };
      78                 :             : 
      79                 :             : template<>
      80                 :             : struct ProxyMethod<ipc::capnp::messages::BlockTemplate::GetCoinbaseTxParams>
      81                 :             : {
      82                 :             :     static constexpr auto impl = &interfaces::BlockTemplate::getCoinbaseTx;
      83                 :             : };
      84                 :             : 
      85                 :             : template<>
      86                 :             : struct ProxyMethod<ipc::capnp::messages::BlockTemplate::GetCoinbaseCommitmentParams>
      87                 :             : {
      88                 :             :     static constexpr auto impl = &interfaces::BlockTemplate::getCoinbaseCommitment;
      89                 :             : };
      90                 :             : 
      91                 :             : template<>
      92                 :             : struct ProxyMethod<ipc::capnp::messages::BlockTemplate::GetWitnessCommitmentIndexParams>
      93                 :             : {
      94                 :             :     static constexpr auto impl = &interfaces::BlockTemplate::getWitnessCommitmentIndex;
      95                 :             : };
      96                 :             : 
      97                 :             : template<>
      98                 :             : struct ProxyMethod<ipc::capnp::messages::BlockTemplate::GetCoinbaseMerklePathParams>
      99                 :             : {
     100                 :             :     static constexpr auto impl = &interfaces::BlockTemplate::getCoinbaseMerklePath;
     101                 :             : };
     102                 :             : 
     103                 :             : template<>
     104                 :             : struct ProxyMethod<ipc::capnp::messages::BlockTemplate::SubmitSolutionParams>
     105                 :             : {
     106                 :             :     static constexpr auto impl = &interfaces::BlockTemplate::submitSolution;
     107                 :             : };
     108                 :             : 
     109                 :             : template<>
     110                 :             : struct ProxyMethod<ipc::capnp::messages::BlockTemplate::WaitNextParams>
     111                 :             : {
     112                 :             :     static constexpr auto impl = &interfaces::BlockTemplate::waitNext;
     113                 :             : };
     114                 :             : 
     115                 :             : namespace mining_fields {
     116                 :             : struct Context
     117                 :             : {
     118                 :           0 :     template<typename S> static auto get(S&& s) -> decltype(s.getContext()) { return s.getContext(); }
     119                 :             :     template<typename S> static bool has(S&& s) { return s.hasContext(); }
     120                 :             :     template<typename S, typename A> static void set(S&& s, A&& a) { s.setContext(std::forward<A>(a)); }
     121                 :           0 :     template<typename S, typename... A> static decltype(auto) init(S&& s, A&&... a) { return s.initContext(std::forward<A>(a)...); }
     122                 :             :     template<typename S> static bool getWant(S&& s) { return s.getWantContext(); }
     123                 :             :     template<typename S> static void setWant(S&& s) { s.setWantContext(true); }
     124                 :             :     template<typename S> static bool getHas(S&& s) { return s.getHasContext(); }
     125                 :             :     template<typename S> static void setHas(S&& s) { s.setHasContext(true); }
     126                 :             : };
     127                 :             : struct Result
     128                 :             : {
     129   [ #  #  #  #  :           0 :     template<typename S> static auto get(S&& s) -> decltype(s.getResult()) { return s.getResult(); }
          #  #  #  #  #  
                      # ]
     130                 :           0 :     template<typename S> static bool has(S&& s) { return s.hasResult(); }
     131         [ #  # ]:           0 :     template<typename S, typename A> static void set(S&& s, A&& a) { s.setResult(std::forward<A>(a)); }
     132   [ #  #  #  #  :           0 :     template<typename S, typename... A> static decltype(auto) init(S&& s, A&&... a) { return s.initResult(std::forward<A>(a)...); }
                   #  # ]
     133                 :             :     template<typename S> static bool getWant(S&& s) { return s.getWantResult(); }
     134                 :             :     template<typename S> static void setWant(S&& s) { s.setWantResult(true); }
     135   [ #  #  #  #  :           0 :     template<typename S> static bool getHas(S&& s) { return s.getHasResult(); }
                   #  # ]
     136                 :           0 :     template<typename S> static void setHas(S&& s) { s.setHasResult(true); }
     137                 :             : };
     138                 :             : struct CurrentTip
     139                 :             : {
     140                 :           0 :     template<typename S> static auto get(S&& s) -> decltype(s.getCurrentTip()) { return s.getCurrentTip(); }
     141                 :           0 :     template<typename S> static bool has(S&& s) { return s.hasCurrentTip(); }
     142                 :             :     template<typename S, typename A> static void set(S&& s, A&& a) { s.setCurrentTip(std::forward<A>(a)); }
     143         [ #  # ]:           0 :     template<typename S, typename... A> static decltype(auto) init(S&& s, A&&... a) { return s.initCurrentTip(std::forward<A>(a)...); }
     144                 :             :     template<typename S> static bool getWant(S&& s) { return s.getWantCurrentTip(); }
     145                 :             :     template<typename S> static void setWant(S&& s) { s.setWantCurrentTip(true); }
     146                 :             :     template<typename S> static bool getHas(S&& s) { return s.getHasCurrentTip(); }
     147                 :             :     template<typename S> static void setHas(S&& s) { s.setHasCurrentTip(true); }
     148                 :             : };
     149                 :             : struct Timeout
     150                 :             : {
     151   [ #  #  #  #  :           0 :     template<typename S> static auto get(S&& s) -> decltype(s.getTimeout()) { return s.getTimeout(); }
                   #  # ]
     152                 :             :     template<typename S> static bool has(S&& s) { return s.hasTimeout(); }
     153                 :           0 :     template<typename S, typename A> static void set(S&& s, A&& a) { s.setTimeout(std::forward<A>(a)); }
     154                 :             :     template<typename S, typename... A> static decltype(auto) init(S&& s, A&&... a) { return s.initTimeout(std::forward<A>(a)...); }
     155                 :             :     template<typename S> static bool getWant(S&& s) { return s.getWantTimeout(); }
     156                 :             :     template<typename S> static void setWant(S&& s) { s.setWantTimeout(true); }
     157                 :             :     template<typename S> static bool getHas(S&& s) { return s.getHasTimeout(); }
     158                 :             :     template<typename S> static void setHas(S&& s) { s.setHasTimeout(true); }
     159                 :             : };
     160                 :             : struct Options
     161                 :             : {
     162                 :           0 :     template<typename S> static auto get(S&& s) -> decltype(s.getOptions()) { return s.getOptions(); }
     163                 :             :     template<typename S> static bool has(S&& s) { return s.hasOptions(); }
     164                 :             :     template<typename S, typename A> static void set(S&& s, A&& a) { s.setOptions(std::forward<A>(a)); }
     165                 :           0 :     template<typename S, typename... A> static decltype(auto) init(S&& s, A&&... a) { return s.initOptions(std::forward<A>(a)...); }
     166                 :             :     template<typename S> static bool getWant(S&& s) { return s.getWantOptions(); }
     167                 :             :     template<typename S> static void setWant(S&& s) { s.setWantOptions(true); }
     168                 :             :     template<typename S> static bool getHas(S&& s) { return s.getHasOptions(); }
     169                 :             :     template<typename S> static void setHas(S&& s) { s.setHasOptions(true); }
     170                 :             : };
     171                 :             : struct Block
     172                 :             : {
     173                 :           0 :     template<typename S> static auto get(S&& s) -> decltype(s.getBlock()) { return s.getBlock(); }
     174                 :           0 :     template<typename S> static bool has(S&& s) { return s.hasBlock(); }
     175                 :             :     template<typename S, typename A> static void set(S&& s, A&& a) { s.setBlock(std::forward<A>(a)); }
     176         [ #  # ]:           0 :     template<typename S, typename... A> static decltype(auto) init(S&& s, A&&... a) { return s.initBlock(std::forward<A>(a)...); }
     177                 :             :     template<typename S> static bool getWant(S&& s) { return s.getWantBlock(); }
     178                 :             :     template<typename S> static void setWant(S&& s) { s.setWantBlock(true); }
     179                 :             :     template<typename S> static bool getHas(S&& s) { return s.getHasBlock(); }
     180                 :             :     template<typename S> static void setHas(S&& s) { s.setHasBlock(true); }
     181                 :             : };
     182                 :             : struct Reason
     183                 :             : {
     184                 :           0 :     template<typename S> static auto get(S&& s) -> decltype(s.getReason()) { return s.getReason(); }
     185                 :             :     template<typename S> static bool has(S&& s) { return s.hasReason(); }
     186                 :             :     template<typename S, typename A> static void set(S&& s, A&& a) { s.setReason(std::forward<A>(a)); }
     187                 :           0 :     template<typename S, typename... A> static decltype(auto) init(S&& s, A&&... a) { return s.initReason(std::forward<A>(a)...); }
     188                 :             :     template<typename S> static bool getWant(S&& s) { return s.getWantReason(); }
     189                 :             :     template<typename S> static void setWant(S&& s) { s.setWantReason(true); }
     190                 :             :     template<typename S> static bool getHas(S&& s) { return s.getHasReason(); }
     191                 :             :     template<typename S> static void setHas(S&& s) { s.setHasReason(true); }
     192                 :             : };
     193                 :             : struct Debug
     194                 :             : {
     195                 :           0 :     template<typename S> static auto get(S&& s) -> decltype(s.getDebug()) { return s.getDebug(); }
     196                 :             :     template<typename S> static bool has(S&& s) { return s.hasDebug(); }
     197                 :             :     template<typename S, typename A> static void set(S&& s, A&& a) { s.setDebug(std::forward<A>(a)); }
     198                 :           0 :     template<typename S, typename... A> static decltype(auto) init(S&& s, A&&... a) { return s.initDebug(std::forward<A>(a)...); }
     199                 :             :     template<typename S> static bool getWant(S&& s) { return s.getWantDebug(); }
     200                 :             :     template<typename S> static void setWant(S&& s) { s.setWantDebug(true); }
     201                 :             :     template<typename S> static bool getHas(S&& s) { return s.getHasDebug(); }
     202                 :             :     template<typename S> static void setHas(S&& s) { s.setHasDebug(true); }
     203                 :             : };
     204                 :             : struct Version
     205                 :             : {
     206   [ #  #  #  # ]:           0 :     template<typename S> static auto get(S&& s) -> decltype(s.getVersion()) { return s.getVersion(); }
     207                 :             :     template<typename S> static bool has(S&& s) { return s.hasVersion(); }
     208                 :           0 :     template<typename S, typename A> static void set(S&& s, A&& a) { s.setVersion(std::forward<A>(a)); }
     209                 :             :     template<typename S, typename... A> static decltype(auto) init(S&& s, A&&... a) { return s.initVersion(std::forward<A>(a)...); }
     210                 :             :     template<typename S> static bool getWant(S&& s) { return s.getWantVersion(); }
     211                 :             :     template<typename S> static void setWant(S&& s) { s.setWantVersion(true); }
     212                 :             :     template<typename S> static bool getHas(S&& s) { return s.getHasVersion(); }
     213                 :             :     template<typename S> static void setHas(S&& s) { s.setHasVersion(true); }
     214                 :             : };
     215                 :             : struct Timestamp
     216                 :             : {
     217   [ #  #  #  # ]:           0 :     template<typename S> static auto get(S&& s) -> decltype(s.getTimestamp()) { return s.getTimestamp(); }
     218                 :             :     template<typename S> static bool has(S&& s) { return s.hasTimestamp(); }
     219                 :           0 :     template<typename S, typename A> static void set(S&& s, A&& a) { s.setTimestamp(std::forward<A>(a)); }
     220                 :             :     template<typename S, typename... A> static decltype(auto) init(S&& s, A&&... a) { return s.initTimestamp(std::forward<A>(a)...); }
     221                 :             :     template<typename S> static bool getWant(S&& s) { return s.getWantTimestamp(); }
     222                 :             :     template<typename S> static void setWant(S&& s) { s.setWantTimestamp(true); }
     223                 :             :     template<typename S> static bool getHas(S&& s) { return s.getHasTimestamp(); }
     224                 :             :     template<typename S> static void setHas(S&& s) { s.setHasTimestamp(true); }
     225                 :             : };
     226                 :             : struct Nonce
     227                 :             : {
     228   [ #  #  #  # ]:           0 :     template<typename S> static auto get(S&& s) -> decltype(s.getNonce()) { return s.getNonce(); }
     229                 :             :     template<typename S> static bool has(S&& s) { return s.hasNonce(); }
     230                 :           0 :     template<typename S, typename A> static void set(S&& s, A&& a) { s.setNonce(std::forward<A>(a)); }
     231                 :             :     template<typename S, typename... A> static decltype(auto) init(S&& s, A&&... a) { return s.initNonce(std::forward<A>(a)...); }
     232                 :             :     template<typename S> static bool getWant(S&& s) { return s.getWantNonce(); }
     233                 :             :     template<typename S> static void setWant(S&& s) { s.setWantNonce(true); }
     234                 :             :     template<typename S> static bool getHas(S&& s) { return s.getHasNonce(); }
     235                 :             :     template<typename S> static void setHas(S&& s) { s.setHasNonce(true); }
     236                 :             : };
     237                 :             : struct Coinbase
     238                 :             : {
     239                 :           0 :     template<typename S> static auto get(S&& s) -> decltype(s.getCoinbase()) { return s.getCoinbase(); }
     240                 :           0 :     template<typename S> static bool has(S&& s) { return s.hasCoinbase(); }
     241                 :             :     template<typename S, typename A> static void set(S&& s, A&& a) { s.setCoinbase(std::forward<A>(a)); }
     242         [ #  # ]:           0 :     template<typename S, typename... A> static decltype(auto) init(S&& s, A&&... a) { return s.initCoinbase(std::forward<A>(a)...); }
     243                 :             :     template<typename S> static bool getWant(S&& s) { return s.getWantCoinbase(); }
     244                 :             :     template<typename S> static void setWant(S&& s) { s.setWantCoinbase(true); }
     245                 :             :     template<typename S> static bool getHas(S&& s) { return s.getHasCoinbase(); }
     246                 :             :     template<typename S> static void setHas(S&& s) { s.setHasCoinbase(true); }
     247                 :             : };
     248                 :             : struct UseMempool
     249                 :             : {
     250         [ #  # ]:           0 :     template<typename S> static auto get(S&& s) -> decltype(s.getUseMempool()) { return s.getUseMempool(); }
     251                 :             :     template<typename S> static bool has(S&& s) { return s.hasUseMempool(); }
     252                 :           0 :     template<typename S, typename A> static void set(S&& s, A&& a) { s.setUseMempool(std::forward<A>(a)); }
     253                 :             :     template<typename S, typename... A> static decltype(auto) init(S&& s, A&&... a) { return s.initUseMempool(std::forward<A>(a)...); }
     254                 :             :     template<typename S> static bool getWant(S&& s) { return s.getWantUseMempool(); }
     255                 :             :     template<typename S> static void setWant(S&& s) { s.setWantUseMempool(true); }
     256                 :             :     template<typename S> static bool getHas(S&& s) { return s.getHasUseMempool(); }
     257                 :             :     template<typename S> static void setHas(S&& s) { s.setHasUseMempool(true); }
     258                 :             : };
     259                 :             : struct BlockReservedWeight
     260                 :             : {
     261         [ #  # ]:           0 :     template<typename S> static auto get(S&& s) -> decltype(s.getBlockReservedWeight()) { return s.getBlockReservedWeight(); }
     262                 :             :     template<typename S> static bool has(S&& s) { return s.hasBlockReservedWeight(); }
     263                 :           0 :     template<typename S, typename A> static void set(S&& s, A&& a) { s.setBlockReservedWeight(std::forward<A>(a)); }
     264                 :             :     template<typename S, typename... A> static decltype(auto) init(S&& s, A&&... a) { return s.initBlockReservedWeight(std::forward<A>(a)...); }
     265                 :             :     template<typename S> static bool getWant(S&& s) { return s.getWantBlockReservedWeight(); }
     266                 :             :     template<typename S> static void setWant(S&& s) { s.setWantBlockReservedWeight(true); }
     267                 :             :     template<typename S> static bool getHas(S&& s) { return s.getHasBlockReservedWeight(); }
     268                 :             :     template<typename S> static void setHas(S&& s) { s.setHasBlockReservedWeight(true); }
     269                 :             : };
     270                 :             : struct CoinbaseOutputMaxAdditionalSigops
     271                 :             : {
     272         [ #  # ]:           0 :     template<typename S> static auto get(S&& s) -> decltype(s.getCoinbaseOutputMaxAdditionalSigops()) { return s.getCoinbaseOutputMaxAdditionalSigops(); }
     273                 :             :     template<typename S> static bool has(S&& s) { return s.hasCoinbaseOutputMaxAdditionalSigops(); }
     274                 :           0 :     template<typename S, typename A> static void set(S&& s, A&& a) { s.setCoinbaseOutputMaxAdditionalSigops(std::forward<A>(a)); }
     275                 :             :     template<typename S, typename... A> static decltype(auto) init(S&& s, A&&... a) { return s.initCoinbaseOutputMaxAdditionalSigops(std::forward<A>(a)...); }
     276                 :             :     template<typename S> static bool getWant(S&& s) { return s.getWantCoinbaseOutputMaxAdditionalSigops(); }
     277                 :             :     template<typename S> static void setWant(S&& s) { s.setWantCoinbaseOutputMaxAdditionalSigops(true); }
     278                 :             :     template<typename S> static bool getHas(S&& s) { return s.getHasCoinbaseOutputMaxAdditionalSigops(); }
     279                 :             :     template<typename S> static void setHas(S&& s) { s.setHasCoinbaseOutputMaxAdditionalSigops(true); }
     280                 :             : };
     281                 :             : struct FeeThreshold
     282                 :             : {
     283         [ #  # ]:           0 :     template<typename S> static auto get(S&& s) -> decltype(s.getFeeThreshold()) { return s.getFeeThreshold(); }
     284                 :             :     template<typename S> static bool has(S&& s) { return s.hasFeeThreshold(); }
     285                 :           0 :     template<typename S, typename A> static void set(S&& s, A&& a) { s.setFeeThreshold(std::forward<A>(a)); }
     286                 :             :     template<typename S, typename... A> static decltype(auto) init(S&& s, A&&... a) { return s.initFeeThreshold(std::forward<A>(a)...); }
     287                 :             :     template<typename S> static bool getWant(S&& s) { return s.getWantFeeThreshold(); }
     288                 :             :     template<typename S> static void setWant(S&& s) { s.setWantFeeThreshold(true); }
     289                 :             :     template<typename S> static bool getHas(S&& s) { return s.getHasFeeThreshold(); }
     290                 :             :     template<typename S> static void setHas(S&& s) { s.setHasFeeThreshold(true); }
     291                 :             : };
     292                 :             : struct CheckMerkleRoot
     293                 :             : {
     294         [ #  # ]:           0 :     template<typename S> static auto get(S&& s) -> decltype(s.getCheckMerkleRoot()) { return s.getCheckMerkleRoot(); }
     295                 :             :     template<typename S> static bool has(S&& s) { return s.hasCheckMerkleRoot(); }
     296                 :           0 :     template<typename S, typename A> static void set(S&& s, A&& a) { s.setCheckMerkleRoot(std::forward<A>(a)); }
     297                 :             :     template<typename S, typename... A> static decltype(auto) init(S&& s, A&&... a) { return s.initCheckMerkleRoot(std::forward<A>(a)...); }
     298                 :             :     template<typename S> static bool getWant(S&& s) { return s.getWantCheckMerkleRoot(); }
     299                 :             :     template<typename S> static void setWant(S&& s) { s.setWantCheckMerkleRoot(true); }
     300                 :             :     template<typename S> static bool getHas(S&& s) { return s.getHasCheckMerkleRoot(); }
     301                 :             :     template<typename S> static void setHas(S&& s) { s.setHasCheckMerkleRoot(true); }
     302                 :             : };
     303                 :             : struct CheckPow
     304                 :             : {
     305         [ #  # ]:           0 :     template<typename S> static auto get(S&& s) -> decltype(s.getCheckPow()) { return s.getCheckPow(); }
     306                 :             :     template<typename S> static bool has(S&& s) { return s.hasCheckPow(); }
     307                 :           0 :     template<typename S, typename A> static void set(S&& s, A&& a) { s.setCheckPow(std::forward<A>(a)); }
     308                 :             :     template<typename S, typename... A> static decltype(auto) init(S&& s, A&&... a) { return s.initCheckPow(std::forward<A>(a)...); }
     309                 :             :     template<typename S> static bool getWant(S&& s) { return s.getWantCheckPow(); }
     310                 :             :     template<typename S> static void setWant(S&& s) { s.setWantCheckPow(true); }
     311                 :             :     template<typename S> static bool getHas(S&& s) { return s.getHasCheckPow(); }
     312                 :             :     template<typename S> static void setHas(S&& s) { s.setHasCheckPow(true); }
     313                 :             : };
     314                 :             : } // namespace mining_fields
     315                 :             : 
     316                 :             : template<>
     317                 :             : struct ProxyClient<ipc::capnp::messages::Mining> final : public ProxyClientCustom<ipc::capnp::messages::Mining, interfaces::Mining>
     318                 :             : {
     319                 :             : public:
     320   [ #  #  #  # ]:           0 :     using ProxyClientCustom::ProxyClientCustom;
     321                 :             :     ~ProxyClient();
     322                 :             :     using M0 = ProxyClientMethodTraits<ipc::capnp::messages::Mining::IsTestChainParams>;
     323                 :             :     typename M0::Result isTestChain();
     324                 :             :     using M1 = ProxyClientMethodTraits<ipc::capnp::messages::Mining::IsInitialBlockDownloadParams>;
     325                 :             :     typename M1::Result isInitialBlockDownload();
     326                 :             :     using M2 = ProxyClientMethodTraits<ipc::capnp::messages::Mining::GetTipParams>;
     327                 :             :     typename M2::Result getTip();
     328                 :             :     using M3 = ProxyClientMethodTraits<ipc::capnp::messages::Mining::WaitTipChangedParams>;
     329                 :             :     typename M3::Result waitTipChanged(M3::Param<0> currentTip,M3::Param<1> timeout);
     330                 :             :     using M4 = ProxyClientMethodTraits<ipc::capnp::messages::Mining::CreateNewBlockParams>;
     331                 :             :     typename M4::Result createNewBlock(M4::Param<0> options);
     332                 :             :     using M5 = ProxyClientMethodTraits<ipc::capnp::messages::Mining::CheckBlockParams>;
     333                 :             :     typename M5::Result checkBlock(M5::Param<0> block,M5::Param<1> options,M5::Param<2> reason,M5::Param<3> debug);
     334                 :             : };
     335                 :             : 
     336                 :             : template<>
     337                 :             : struct ProxyServer<ipc::capnp::messages::Mining> : public ProxyServerCustom<ipc::capnp::messages::Mining, interfaces::Mining>
     338                 :             : {
     339                 :             : public:
     340                 :             :     using ProxyServerCustom::ProxyServerCustom;
     341                 :             :     ~ProxyServer();
     342                 :             :     kj::Promise<void> isTestChain(IsTestChainContext call_context) override;
     343                 :             :     kj::Promise<void> isInitialBlockDownload(IsInitialBlockDownloadContext call_context) override;
     344                 :             :     kj::Promise<void> getTip(GetTipContext call_context) override;
     345                 :             :     kj::Promise<void> waitTipChanged(WaitTipChangedContext call_context) override;
     346                 :             :     kj::Promise<void> createNewBlock(CreateNewBlockContext call_context) override;
     347                 :             :     kj::Promise<void> checkBlock(CheckBlockContext call_context) override;
     348                 :             : };
     349                 :             : 
     350                 :             : template<>
     351                 :             : struct ProxyType<interfaces::Mining>
     352                 :             : {
     353                 :             :     using Type = interfaces::Mining;
     354                 :             :     using Message = ipc::capnp::messages::Mining;
     355                 :             :     using Client = ProxyClient<Message>;
     356                 :             :     using Server = ProxyServer<Message>;
     357                 :             : };
     358                 :             : 
     359                 :             : template<>
     360                 :             : struct ProxyClient<ipc::capnp::messages::BlockTemplate> final : public ProxyClientCustom<ipc::capnp::messages::BlockTemplate, interfaces::BlockTemplate>
     361                 :             : {
     362                 :             : public:
     363   [ #  #  #  # ]:           0 :     using ProxyClientCustom::ProxyClientCustom;
     364                 :             :     ~ProxyClient();
     365                 :             :     using M0 = ProxyClientMethodTraits<ipc::capnp::messages::BlockTemplate::DestroyParams>;
     366                 :             :     static typename M0::Result destroy(Super& super);
     367                 :             :     using M1 = ProxyClientMethodTraits<ipc::capnp::messages::BlockTemplate::GetBlockHeaderParams>;
     368                 :             :     typename M1::Result getBlockHeader();
     369                 :             :     using M2 = ProxyClientMethodTraits<ipc::capnp::messages::BlockTemplate::GetBlockParams>;
     370                 :             :     typename M2::Result getBlock();
     371                 :             :     using M3 = ProxyClientMethodTraits<ipc::capnp::messages::BlockTemplate::GetTxFeesParams>;
     372                 :             :     typename M3::Result getTxFees();
     373                 :             :     using M4 = ProxyClientMethodTraits<ipc::capnp::messages::BlockTemplate::GetTxSigopsParams>;
     374                 :             :     typename M4::Result getTxSigops();
     375                 :             :     using M5 = ProxyClientMethodTraits<ipc::capnp::messages::BlockTemplate::GetCoinbaseTxParams>;
     376                 :             :     typename M5::Result getCoinbaseTx();
     377                 :             :     using M6 = ProxyClientMethodTraits<ipc::capnp::messages::BlockTemplate::GetCoinbaseCommitmentParams>;
     378                 :             :     typename M6::Result getCoinbaseCommitment();
     379                 :             :     using M7 = ProxyClientMethodTraits<ipc::capnp::messages::BlockTemplate::GetWitnessCommitmentIndexParams>;
     380                 :             :     typename M7::Result getWitnessCommitmentIndex();
     381                 :             :     using M8 = ProxyClientMethodTraits<ipc::capnp::messages::BlockTemplate::GetCoinbaseMerklePathParams>;
     382                 :             :     typename M8::Result getCoinbaseMerklePath();
     383                 :             :     using M9 = ProxyClientMethodTraits<ipc::capnp::messages::BlockTemplate::SubmitSolutionParams>;
     384                 :             :     typename M9::Result submitSolution(M9::Param<0> version,M9::Param<1> timestamp,M9::Param<2> nonce,M9::Param<3> coinbase);
     385                 :             :     using M10 = ProxyClientMethodTraits<ipc::capnp::messages::BlockTemplate::WaitNextParams>;
     386                 :             :     typename M10::Result waitNext(M10::Param<0> options);
     387                 :             : };
     388                 :             : 
     389                 :             : template<>
     390                 :             : struct ProxyServer<ipc::capnp::messages::BlockTemplate> : public ProxyServerCustom<ipc::capnp::messages::BlockTemplate, interfaces::BlockTemplate>
     391                 :             : {
     392                 :             : public:
     393                 :             :     using ProxyServerCustom::ProxyServerCustom;
     394                 :             :     ~ProxyServer();
     395                 :             :     kj::Promise<void> destroy(DestroyContext call_context) override;
     396                 :             :     kj::Promise<void> getBlockHeader(GetBlockHeaderContext call_context) override;
     397                 :             :     kj::Promise<void> getBlock(GetBlockContext call_context) override;
     398                 :             :     kj::Promise<void> getTxFees(GetTxFeesContext call_context) override;
     399                 :             :     kj::Promise<void> getTxSigops(GetTxSigopsContext call_context) override;
     400                 :             :     kj::Promise<void> getCoinbaseTx(GetCoinbaseTxContext call_context) override;
     401                 :             :     kj::Promise<void> getCoinbaseCommitment(GetCoinbaseCommitmentContext call_context) override;
     402                 :             :     kj::Promise<void> getWitnessCommitmentIndex(GetWitnessCommitmentIndexContext call_context) override;
     403                 :             :     kj::Promise<void> getCoinbaseMerklePath(GetCoinbaseMerklePathContext call_context) override;
     404                 :             :     kj::Promise<void> submitSolution(SubmitSolutionContext call_context) override;
     405                 :             :     kj::Promise<void> waitNext(WaitNextContext call_context) override;
     406                 :             : };
     407                 :             : 
     408                 :             : template<>
     409                 :             : struct ProxyType<interfaces::BlockTemplate>
     410                 :             : {
     411                 :             :     using Type = interfaces::BlockTemplate;
     412                 :             :     using Message = ipc::capnp::messages::BlockTemplate;
     413                 :             :     using Client = ProxyClient<Message>;
     414                 :             :     using Server = ProxyServer<Message>;
     415                 :             : };
     416                 :             : template<>
     417                 :             : struct ProxyStruct<ipc::capnp::messages::BlockCreateOptions>
     418                 :             : {
     419                 :             :     using Struct = ipc::capnp::messages::BlockCreateOptions;
     420                 :             :     using UseMempoolAccessor = Accessor<mining_fields::UseMempool, FIELD_IN | FIELD_OUT>;
     421                 :             :     using BlockReservedWeightAccessor = Accessor<mining_fields::BlockReservedWeight, FIELD_IN | FIELD_OUT>;
     422                 :             :     using CoinbaseOutputMaxAdditionalSigopsAccessor = Accessor<mining_fields::CoinbaseOutputMaxAdditionalSigops, FIELD_IN | FIELD_OUT>;
     423                 :             :     using Accessors = std::tuple<UseMempoolAccessor, BlockReservedWeightAccessor, CoinbaseOutputMaxAdditionalSigopsAccessor>;
     424                 :             :     static constexpr size_t fields = 3;
     425                 :             : };
     426                 :             : template<>
     427                 :             : struct ProxyStruct<ipc::capnp::messages::BlockWaitOptions>
     428                 :             : {
     429                 :             :     using Struct = ipc::capnp::messages::BlockWaitOptions;
     430                 :             :     using TimeoutAccessor = Accessor<mining_fields::Timeout, FIELD_IN | FIELD_OUT>;
     431                 :             :     using FeeThresholdAccessor = Accessor<mining_fields::FeeThreshold, FIELD_IN | FIELD_OUT>;
     432                 :             :     using Accessors = std::tuple<TimeoutAccessor, FeeThresholdAccessor>;
     433                 :             :     static constexpr size_t fields = 2;
     434                 :             : };
     435                 :             : template<>
     436                 :             : struct ProxyStruct<ipc::capnp::messages::BlockCheckOptions>
     437                 :             : {
     438                 :             :     using Struct = ipc::capnp::messages::BlockCheckOptions;
     439                 :             :     using CheckMerkleRootAccessor = Accessor<mining_fields::CheckMerkleRoot, FIELD_IN | FIELD_OUT>;
     440                 :             :     using CheckPowAccessor = Accessor<mining_fields::CheckPow, FIELD_IN | FIELD_OUT>;
     441                 :             :     using Accessors = std::tuple<CheckMerkleRootAccessor, CheckPowAccessor>;
     442                 :             :     static constexpr size_t fields = 2;
     443                 :             : };
     444                 :             : } // namespace mp
     445                 :             : #if defined(__GNUC__)
     446                 :             : #pragma GCC diagnostic pop
     447                 :             : #endif
     448                 :             : #endif
        

Generated by: LCOV version 2.0-1