-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to Platform SDK 0.7.0-beta.1, add payer records to state for deterministic duplicate classification #397
Merged
Merged
Changes from 44 commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
94cc058
Misc EET enhancements
943c79c
Remove some now-absent, once-deprecated methods in FastCopyable
a3b0c56
Increase coverage
a277874
Initial ExpiryManager
199df7a
Complete ExpiryManager
c8e639d
Skip CI for now
37dedeb
Switch to EntityCreator in FeePayingHistorian
838f08e
75% done with RecordCache rewrite
6015f53
Intermediate
7f3c856
Unit tests passing again
11200f1
Before extending ExpirableTxnRecord with submittingMember
d801995
Unit tests passing again
a611483
Reenable CI
9764090
Update ethj staging repo
2c4bd30
Merge remote-tracking branch 'origin/master' into 0348-M-Keep3minPaye…
aeb48fa
Only stage payer records
09b260b
Initial commit
9a7f95e
Disable CI for now
ecbdfe4
Isolate (most) "bootstrap" (that is, static+global) properties to avo…
9d868cd
Checkpoint before switching Bootstrap to StaticGlobal
189e23c
Finish BackedSystemAccountsCreator
eda90d3
Before cleanup
036f2f2
Re-enable CI after cleanup
bf3dbf2
Fix unit test
6c54e0f
Add test resources
6d132ef
Explicit xfer list construction
cd660fe
Cleanup before additional optimizations
7b41753
Minimize performance impact of debug logs; reuse recordSoFar
6e5316e
Rerun CI with new usage estimator lookup
284673b
Use lookup for transition logic
2b15ddb
Compile with 0.7.0-beta.1
e6233e2
Initial CI run with 0.7.0-beta.1
d1361c3
Use BackingAccounts to look up crypto keys during sig verification
18cac5a
Fix typo in bootstrap property name
e9b1d97
Merge remote-tracking branch 'origin/master' into tmp-merge
f7dc786
Resolve merge conflicts
2c97948
Use new settings names in hedera-node/configuration/dev
f39b387
Allow override of default node in ValidationScenarios
213e0d7
Add copyrights
8bfaf21
Merge remote-tracking branch 'origin/master' into tmp-merge
73402f4
Resolve midnight rates dynamically
432683e
Enabled nightly regression run for sdk070 branch.
ljianghedera 95ebef9
Accomodate for Platform calling copy on an uninitialized ServicesState
bbe106a
Merge branch '0347-M-UpgradeToSdk070beta1' of github.com:hashgraph/he…
ljianghedera 4167eb3
Add licenses
565e1d2
Merge branch '0347-M-UpgradeToSdk070beta1' of github.com:hashgraph/he…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1049,14 +1049,14 @@ workflows: | |
- attach_workspace: | ||
at: / | ||
|
||
nightly-regression: | ||
nightly-regression-for-sdk070: | ||
triggers: | ||
- schedule: | ||
cron: "0 5,9,13 * * *" | ||
cron: "0 16,21 * * *" | ||
filters: | ||
branches: | ||
only: | ||
- master | ||
- 0347-M-UpgradeToSdk070beta1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here |
||
jobs: | ||
- fast-build-artifact: | ||
context: Slack | ||
|
@@ -1356,6 +1356,7 @@ workflows: | |
ignore: | ||
- /.*-PERF/ | ||
- /.*-REGRESSION/ | ||
- 0347-M-UpgradeToSdk070beta1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And here. |
||
workflow-name: "Continuous integration" | ||
- start-singlejob-testnet: | ||
context: Slack | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#! /bin/sh | ||
find . -name '*.proto' | while read FILE; do | ||
cat $FILE | head -3 > tmp.proto | ||
LINES=$(wc -l $FILE | awk '{print $1}') | ||
TCOUNT=$((LINES-3)) | ||
echo '' >> tmp.proto | ||
cat copyright.txt >> tmp.proto | ||
tail -n ${TCOUNT} $FILE >> tmp.proto | ||
mv tmp.proto $FILE | ||
done |
21 changes: 3 additions & 18 deletions
21
...s/txns/diligence/DuplicateClassifier.java → hapi-proto/copyright.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,19 @@ | ||
package com.hedera.services.txns.diligence; | ||
|
||
/*- | ||
* | ||
* Hedera Services Node | ||
* Hedera Network Services Protobuf | ||
* | ||
* Copyright (C) 2018 - 2020 Hedera Hashgraph, LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
|
||
import com.hederahashgraph.api.proto.java.TransactionID; | ||
|
||
/** | ||
* Defines a type able to detect duplicate transactions within sliding window. | ||
* | ||
* @author Michael Tinker | ||
*/ | ||
public interface DuplicateClassifier { | ||
void observe(TransactionID txnId, long at); | ||
void shiftWindow(long to); | ||
boolean isDuplicate(TransactionID txnId); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When merging, this changes need to be restored to original.