Add virtual destructor to SproutNote and BaseNote

Also add test to make sure default copy constructors are okay.
This commit is contained in:
Simon
2018-04-25 19:03:43 -07:00
parent 5d99e3e92f
commit 5f4fa1a954
2 changed files with 26 additions and 0 deletions

View File

@@ -14,6 +14,8 @@ protected:
public:
BaseNote() {}
BaseNote(uint64_t value) : value_(value) {};
virtual ~BaseNote() {};
virtual uint256 cm() const {};
inline uint64_t value() const { return value_; };
};
@@ -29,6 +31,8 @@ public:
SproutNote();
virtual ~SproutNote() {};
virtual uint256 cm() const override;
uint256 nullifier(const SpendingKey& a_sk) const;