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

Feature/db upgrade #986

Merged
merged 124 commits into from
Mar 20, 2018
Merged

Feature/db upgrade #986

merged 124 commits into from
Mar 20, 2018

Conversation

mkalinin
Copy link
Contributor

No description provided.

mkalinin and others added 17 commits November 30, 2017 16:16
… parsedRlp.

Create a new method makeRlp() that reconstructs and returns an rlp from a
parsedRlp LList object.

Add (parsedRlp != null) case to the if (!dirty) section of the encode method.
Note that the newly created rlp length may be >= 32, so it may need to be saved
and returned as a hash.  The last section of the else clause handles saving a
new rlp.  Move this section of code out of the else clause so it can handle a
new rlp from either the if or else clause.
- NodeFilterTest's acceptNullIpPatternAsCatchAllForNodes and doNotAcceptNullIpPatternAsCatchAllForInetAddresses seem to indicate a discrepancy between InetAddress and Node acceptance. Smells like a potential bug.
- NodeFilterTest's acceptInvalidNodeHostnameWhenUsingWildcard and doNotAcceptInvalidNodeHostnameWhenUsingPattern seem to indicate a discrepancy in acceptance logic. Smells like a potential bug.
- SystemPropertiesTest's testExposeBugWhereNonHexEncodedIsAcceptedWithoutValidation seems to indicate that private key validation is not correct.
- EIP-706 provides snappy samples. FrameCodec should be able to decode these samples.
Fix word misspelled: thisLenght -> thisLength
remove broken blog link
@@ -203,6 +203,7 @@ database {
# controls how much last block states are not pruned
# it is not recommneded to set this value below 192
# as it can prevent rebranching from long fork chains
# consider enlarging cache.pruneWindowCacheSize if you want to increase maxDepth
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

property is pruneCacheSize

# maximum size (in Mb) the state bloom fiter can grow up to
# when reaching this threshold the bloom filter
# is turned off forever
# 128M can manage approx up to 50M of db entries
# deprecated, states source is no more backed with bloom filter
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

may be capitalize DEPRECATED or smth like this, looks like a wall of text
same for the next "deprecated" note

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good idea 👍

import org.ethereum.datasource.ObjectDataSource;
import org.ethereum.datasource.Serializer;
import org.ethereum.datasource.Source;
import org.ethereum.datasource.*;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imports: LevelDbDataSource unused
do we use * imports?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, we don't

@@ -22,6 +22,7 @@
import org.ethereum.datasource.*;
import org.ethereum.trie.*;
import org.ethereum.vm.DataWord;
import org.spongycastle.util.encoders.Hex;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused import

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(loader = AnnotationConfigContextLoader.class)
@NoAutoscan
@Ignore
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why ignored? It's not very long

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decided to create similar integration test which uses memory instead of disk and don't need whole context to be involved

mkalinin and others added 28 commits March 2, 2018 17:12
…indows DLL (works starting from SSE4.2 CPU architecture and Win Vista)
This change fixes bulk test run issue which is somehow related
to incorrect blockchain config. Only bulk run was affected by this problem.
@zilm13 zilm13 merged commit ab03bbd into develop Mar 20, 2018
@mkalinin mkalinin deleted the feature/db-upgrade branch March 22, 2018 06:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants