mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-20 13:28:20 +02:00
Thread ancestors db query (#153)
* Add replyto field to squeak display response in rpc method * Got thread ancestors query working mostyly * Got thread ancestors query working * Fix docstring for ancestor query * Add check for ancestor query to itest
This commit is contained in:
parent
e5fd3cd066
commit
a37296565c
8 changed files with 129 additions and 9 deletions
4
init.sql
4
init.sql
|
|
@ -14,13 +14,13 @@ CREATE TABLE IF NOT EXISTS squeak (
|
|||
n_nonce BIGINT NOT NULL,
|
||||
enc_content CHAR(2272) NOT NULL, -- Encrypted content length is always 1136 bytes (2272 hex characters).
|
||||
vch_script_sig bytea NOT NULL,
|
||||
address VARCHAR(35) NOT NULL, -- Maximum length of a bitcoin address is 35.
|
||||
author_address VARCHAR(35) NOT NULL, -- Maximum length of a bitcoin address is 35.
|
||||
vch_decryption_key bytea NOT NULL,
|
||||
block_header bytea
|
||||
);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_squeak_address
|
||||
ON squeak(address);
|
||||
ON squeak(author_address);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS profile (
|
||||
profile_id SERIAL PRIMARY KEY,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue