Browse Source

修改部分异常代码

tags/1.1.0
shaozhuguang 5 years ago
parent
commit
05940518a0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      source/ledger/ledger-core/src/main/java/com/jd/blockchain/ledger/core/handles/DataAccountKVSetOperationHandle.java

+ 1
- 1
source/ledger/ledger-core/src/main/java/com/jd/blockchain/ledger/core/handles/DataAccountKVSetOperationHandle.java View File

@@ -35,7 +35,7 @@ public class DataAccountKVSetOperationHandle extends AbstractLedgerOperationHand
throw new DataAccountDoesNotExistException("DataAccount doesn't exist!");
}
KVWriteEntry[] writeSet = kvWriteOp.getWriteSet();
long v = -1;
long v = -1L;
for (KVWriteEntry kvw : writeSet) {
v = account.setBytes(Bytes.fromString(kvw.getKey()), kvw.getValue(), kvw.getExpectedVersion());
if (v < 0) {


Loading…
Cancel
Save