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

Commit

Permalink
Remove obsolete Repository.commit(long) method
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashatyrev committed Jan 24, 2017
1 parent 9427e31 commit 9b9bb65
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,6 @@ public interface Repository extends org.ethereum.facade.Repository{
*/
void rollback();

void commit(long blockNumber);

/**
* Return to one of the previous snapshots
* by moving the root.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,6 @@ public void commit() {
repository.commit();
}

@Override
public void commit(long blockNumber) {
repository.commit(blockNumber);
}

@Override
public void rollback() {
repository.rollback();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ protected ProgramResult executeTransaction(Transaction tx) {
System.exit(-1);
}

track.commit(blockchain.getBestBlock().getNumber());
track.commit();
return executor.getResult();
}

Expand Down

0 comments on commit 9b9bb65

Please sign in to comment.