diff options
Diffstat (limited to 'src/balance.h')
-rw-r--r-- | src/balance.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/balance.h b/src/balance.h index 765c46dd..fe8afe2b 100644 --- a/src/balance.h +++ b/src/balance.h @@ -417,6 +417,9 @@ public: bool is_empty() const { return amounts.size() == 0; } + bool single_amount() const { + return amounts.size() == 1; + } /** * Conversion methods. A balance can be converted to an amount, but |