Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 53098a6

Browse files
committed
Fine polishing according to eip-1283 pr review
1 parent 8ab754a commit 53098a6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ethereumj-core/src/main/java/org/ethereum/core/Repository.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,5 +236,9 @@ void loadAccount(byte[] addr, HashMap<ByteArrayWrapper, AccountState> cacheAccou
236236

237237
Repository getSnapshotTo(byte[] root);
238238

239+
/**
240+
* Clones repository so changes made to this repository are
241+
* not reflected in its clone.
242+
*/
239243
Repository clone();
240244
}

ethereumj-core/src/main/java/org/ethereum/db/RepositoryImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public String dumpStateTrie() {
235235
*/
236236
@Override
237237
public Repository clone() {
238-
return startTracking();
238+
return parent.startTracking();
239239
}
240240

241241
class ContractDetailsImpl implements ContractDetails {

0 commit comments

Comments
 (0)