1

In the bitcoin source code you can see a lot of objects of type UniValue, particularly in the miner.cpp and rpc/mining.cpp. What is the utility of this UniValue object? Is it used to update the blockchain, or simply to return a message to a miner in their console?

3

UniValue is a type that encapsulates a JSON value.

It is only used for communication with external utilities through the RPC interface.

  • Thanks, what do you mean by external utilities – Barney Chambers Jan 2 '18 at 10:45
  • Anything that wants to communicate with Bitcoin Core. – Pieter Wuille Jan 2 '18 at 11:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.