src/domain/Holds.java
BeforeProposed
+1−1
2323 public static JsonNode capture(ObjectNode state, JsonNode c) {
2424 ObjectNode hold = lookup(state,"holds",c);
2525 require(hold.path("status").asText().equals("reserved"),"hold-closed");
26 require(number(c,"now",0) <= hold.path("expiresAt").asLong(),"hold-expired");
26 require(number(c,"now",0) < hold.path("expiresAt").asLong(),"hold-expired");
2727 ObjectNode account = Accounts.forHold(state,c,hold.path("account").asText());
2828 Accounts.authorize(account,c);
2929 long amount = hold.path("amount").asLong();