Fix RIPD-166:

* Allow RPC commands sign and submit to sign using the regular key.
* Allow command line RPC command submit to take an "offline" flag.
* Mark SerializedObject.getFlags() as const.
This commit is contained in:
Tom Swirly
2014-04-23 18:15:08 -04:00
committed by Vinnie Falco
parent c39fd4e64d
commit 360db3c7ca
6 changed files with 37 additions and 39 deletions

View File

@@ -558,7 +558,7 @@ bool STObject::clearFlag (std::uint32_t f)
return true;
}
bool STObject::isFlag (std::uint32_t f)
bool STObject::isFlag (std::uint32_t f) const
{
return (getFlags () & f) == f;
}

View File

@@ -156,7 +156,7 @@ public:
bool setFlag (std::uint32_t);
bool clearFlag (std::uint32_t);
bool isFlag(std::uint32_t);
bool isFlag(std::uint32_t) const;
std::uint32_t getFlags () const;
uint256 getHash (std::uint32_t prefix) const;