Skip to content

600 multisig queries #607

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
merged 4 commits into from
Feb 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion common/database/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,39 @@ func (m *Migration) Init() error {
"manifest_reference_height" INTEGER NOT NULL, -- height at which the snapshot was taken on the (main)chain
"chain_type" INTEGER NOT NULL, -- chain type this spine_block_manifest reference to
"manifest_type" INTEGER NOT NULL, -- type of spine_block_manifest (as of now only snapshot)
"manifest_timestamp" INTEGER NOT NULL,-- timestamp that marks the end of file chunks processing
"manifest_timestamp" INTEGER NOT NULL, -- timestamp that marks the end of file chunks processing
PRIMARY KEY("id")
UNIQUE("id")
)
`,
`
CREATE TABLE IF NOT EXISTS "pending_transaction" (
"transaction_hash" BLOB, -- transaction hash of pending transaction
"transaction_bytes" BLOB, -- full transaction bytes of the pending transaction
"status" INTEGER, -- execution status of the pending transaction
"block_height" INTEGER, -- height when pending transaction inserted/updated
PRIMARY KEY("transaction_hash", "block_height")
)
`,
`
CREATE TABLE IF NOT EXISTS "pending_signature" (
"transaction_hash" INTEGER, -- transaction hash of pending transaction being signed
"account_address" TEXT, -- account address of the respective signature
"signature" BLOB, -- full transaction bytes of the pending transaction
"block_height" INTEGER, -- height when pending signature inserted/updated
PRIMARY KEY("account_address", "transaction_hash")
)
`,
`
CREATE TABLE IF NOT EXISTS "multisignature_info" (
"multisig_address" TEXT, -- address of multisig account / hash of multisignature_info
"minimum_signatures" INTEGER, -- account address of the respective signature
"nonce" INTEGER, -- full transaction bytes of the pending transaction
"addresses" TEXT, -- list of addresses / participants of the multisig account
"block_height" INTEGER, -- height when multisignature_info inserted / updated
PRIMARY KEY("multisig_address", "block_height")
)
`,
}
return nil
}
Expand Down
227 changes: 209 additions & 18 deletions common/model/multiSignature.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading