aboutsummaryrefslogtreecommitdiff
path: root/include/univalue.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/univalue.h')
-rw-r--r--include/univalue.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/univalue.h b/include/univalue.h
index 4fd2223b30..c15b2f051e 100644
--- a/include/univalue.h
+++ b/include/univalue.h
@@ -130,6 +130,10 @@ public:
UniValue tmpVal(val_);
return pushKV(key, tmpVal);
}
+ bool pushKV(const std::string& key, bool val_) {
+ UniValue tmpVal((bool)val_);
+ return pushKV(key, tmpVal);
+ }
bool pushKV(const std::string& key, int val_) {
UniValue tmpVal((int64_t)val_);
return pushKV(key, tmpVal);