stopped ignoring actions on Hash (they are lifetime incremetors)

This commit is contained in:
Dave
2015-11-29 11:36:30 +02:00
parent 24c44e08d6
commit 9108b2720a

View File

@@ -105,8 +105,7 @@ public abstract class NoUser implements Serializable {
public final byte[] createFile(char[] password) { public final byte[] createFile(char[] password) {
List<NoAction> tempActions = outgoing; List<NoAction> tempActions = outgoing;
int tempActionCount = actions;
touchRandomizer(); touchRandomizer();
outgoing = new ArrayList<NoAction>(); outgoing = new ArrayList<NoAction>();
actions = 0; actions = 0;
@@ -115,7 +114,6 @@ public abstract class NoUser implements Serializable {
byte[] json = NoUtil.toBytes(gson.toJson(this)); byte[] json = NoUtil.toBytes(gson.toJson(this));
byte[] encrypted = NoUtil.encrypt(json, password); byte[] encrypted = NoUtil.encrypt(json, password);
actions = tempActionCount;
outgoing = tempActions; outgoing = tempActions;
return encrypted; return encrypted;
} }