]> Git Repo - VerusCoin.git/commit
Auto merge of #2456 - btccom:master, r=str4d
authorHomu <[email protected]>
Tue, 20 Jun 2017 08:15:15 +0000 (01:15 -0700)
committerHomu <[email protected]>
Tue, 20 Jun 2017 08:15:15 +0000 (01:15 -0700)
commitc050b9946975a16d12dd5ae1b163a388e594da4b
treece261aad6edfdccf8fff336888f53dd033557743
parent00fd23930b166ad6773d9420c704265d9d056a7e
parent26d27a15ceb495d3c70365b8b0495bde3afe7902
Auto merge of #2456 - btccom:master, r=str4d

[mining] let "getblocktemplate" work when disable wallet

we already support GetBlockTemplate without build wallet, see:

https://github.com/zcash/zcash/blob/master/src/rpcmining.cpp

```
    // Wallet or miner address is required because we support coinbasetxn
    if (GetArg("-mineraddress", "").empty()) {
#ifdef ENABLE_WALLET
        if (!pwalletMain) {
            throw JSONRPCError(RPC_METHOD_NOT_FOUND, "Wallet disabled and -mineraddress not set");
        }
#else
        throw JSONRPCError(RPC_METHOD_NOT_FOUND, "zcashd compiled without wallet and -mineraddress not set");
#endif
    }
```

so the macro should be removed from `src/rpcserver.cpp`, otherwise you can't call `getblocktemplate` when you disable wallet.
This page took 0.023422 seconds and 4 git commands to generate.