test privacy of notes

This commit is contained in:
Ivan Socolsky 2016-05-17 16:35:36 -03:00
parent 7a91d3f652
commit 76d5e7c7bd
No known key found for this signature in database
GPG Key ID: FAECE6A05FAA4F56
1 changed files with 25 additions and 0 deletions

View File

@ -3970,6 +3970,31 @@ describe('Wallet service', function() {
});
});
});
it('should not leak notes between wallets', function(done) {
helpers.createAndJoinWallet(1, 1, {
offset: 2
}, function(server2, wallet2) {
server.editTxNote({
txid: '123',
body: 'note body'
}, function(err) {
should.not.exist(err);
server.getTxNote({
txid: '123',
}, function(err, note) {
should.not.exist(err);
should.exist(note);
server2.getTxNote({
txid: '123',
}, function(err, note) {
should.not.exist(err);
should.not.exist(note);
done();
});
});
});
});
});
it('should be possible to remove a note', function(done) {
server.editTxNote({
txid: '123',