-
Notifications
You must be signed in to change notification settings - Fork 3
Fix manifest rollback #773
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
Merged
iltoga
merged 20 commits into
zoobc:develop
from
andy-shi88:fix-manifest-rollbacl-reset-db
Apr 23, 2020
+325
−120
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
660997e
add spineblock height field
andy-shi88 4e4b6bf
rename spine block manifest column and add indesx on block height column
andy-shi88 880f220
rename spine_block_manifest column field
andy-shi88 9d01d6d
move spine_block_manifest to spinechain derived query category
andy-shi88 255592d
clean snapshot file on rollbacked
andy-shi88 68c9bda
add delete snapshot file function
andy-shi88 71f021d
update tests
andy-shi88 073038d
remove ErrNoRows check as that error only occur on sql.Row not sql.Rows
andy-shi88 87c7256
inject snapshot block service to spine block service
andy-shi88 958f730
snapshot manifest field rename
andy-shi88 0d533d3
fix new rollback query for manifest
andy-shi88 74534d0
use parse instead of splitting chunks manually
andy-shi88 70c58f5
log the deletion error
andy-shi88 4b9540f
handle error
andy-shi88 9b57d80
update schema
andy-shi88 2fe0d73
Merge branch 'develop' of github.com:zoobc/zoobc-core into fix-manife…
andy-shi88 efe139c
Merge branch 'develop' into fix-manifest-rollbacl-reset-db
capt4ce 3fe4829
add extra comment for testing
andy-shi88 44cd860
Merge branch 'fix-manifest-rollbacl-reset-db' of github.com:andy-shi8…
andy-shi88 0692cef
move file deletion to after db commit and as goroutine
andy-shi88 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 |
---|---|---|
|
@@ -35,12 +35,12 @@ func GetDerivedQuery(ct chaintype.ChainType) (derivedQuery []DerivedQuery) { | |
NewPendingTransactionQuery(), | ||
NewPendingSignatureQuery(), | ||
NewMultisignatureInfoQuery(), | ||
NewSpineBlockManifestQuery(), | ||
} | ||
derivedQuery = append(derivedQuery, mainchainDerivedQuery...) | ||
case *chaintype.SpineChain: | ||
spinechainDerivedQuery := []DerivedQuery{ | ||
NewSpinePublicKeyQuery(), | ||
NewSpineBlockManifestQuery(), | ||
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. 👍 |
||
} | ||
derivedQuery = append(derivedQuery, spinechainDerivedQuery...) | ||
} | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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
Submodule schema
updated
2 files
+7 −2 | documentation.swagger.json | |
+8 −5 | model/spineBlockManifest.proto |
This file contains hidden or 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.
👍