diff options
| author | João Barbosa <[email protected]> | 2016-03-30 00:59:29 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2016-04-15 14:55:52 +0200 |
| commit | 41e835dd50d358c127bab17a1f2872471dbdfe9c (patch) | |
| tree | 264580e003adcc38decf0ad0e8f0f1c8634431eb /src/rpc/server.h | |
| parent | Merge #7870: [contrib] Add MarcoFalke key and move all keys to contrib/gitian... (diff) | |
| download | discoin-41e835dd50d358c127bab17a1f2872471dbdfe9c.tar.xz discoin-41e835dd50d358c127bab17a1f2872471dbdfe9c.zip | |
Add strict flag to RPCTypeCheckObj
Strict flag forces type check on all object keys.
Diffstat (limited to 'src/rpc/server.h')
| -rw-r--r-- | src/rpc/server.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/server.h b/src/rpc/server.h index a7ed710ce..b47133661 100644 --- a/src/rpc/server.h +++ b/src/rpc/server.h @@ -70,7 +70,7 @@ void RPCTypeCheck(const UniValue& params, Use like: RPCTypeCheckObj(object, boost::assign::map_list_of("name", str_type)("value", int_type)); */ void RPCTypeCheckObj(const UniValue& o, - const std::map<std::string, UniValue::VType>& typesExpected, bool fAllowNull=false); + const std::map<std::string, UniValue::VType>& typesExpected, bool fAllowNull=false, bool fStrict=false); /** Opaque base class for timers returned by NewTimerFunc. * This provides no methods at the moment, but makes sure that delete |