Commit graph

24 commits

Author SHA1 Message Date
Jonathan Zernik
cdca52b7e2
Rename followed to following (#170)
* Rename followed field to following in profile

* Rename shared field to sharing in profile

* Revert changes to icons.js

* Rename following squeaks to followed squeaks

* Fix frontend for renamed get followed request
2020-07-29 21:48:42 -07:00
Jonathan Zernik
3543f498cc
Fix set followed method (#168)
* Fix set followed rpc method

* Fix get followed squeaks method
2020-07-29 16:53:52 -07:00
Jonathan Zernik
5f734ff142
Fix whitelist refresh (#165)
* Fix refreshing whitelist when it changes, and fix the itest

* Use fixture to get whitelisted signing key.
2020-07-29 02:57:23 -07:00
Jonathan Zernik
cbe0d4014a
Add whitelist (#164)
* Add whitelist class

* Add itest for setting whitelisted field of a profile
2020-07-29 01:09:23 -07:00
Jonathan Zernik
06e642b19c
Add profile whitelist (#160)
* Add whitelisted field to profile table

* Fix adding whitelisted field to profile, itest passes now
2020-07-28 02:05:33 -07:00
Jonathan Zernik
b207469046
Add max squeak per block config (#159)
* Add max squeaks per block per address config

* Add rate limiter class

* Check rate limiter in squeaknode before saving squeak

* Got working itest with rate-limited requests
2020-07-28 01:10:04 -07:00
Jonathan Zernik
a37296565c
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
2020-07-27 00:55:58 -07:00
Jonathan Zernik
5ab01107e4
Fix squeak page hash (#140)
* Use bytes for all squeak hashes in admin proto

* Use string for squeak_hash grpc fields in admin rpc

* Fix redirect to squeak page from make squeak

* Verfiy block synchronously before returning response in make_squeak
2020-07-25 17:19:54 -07:00
Jonathan Zernik
441aecd148
Create tabls in profiles page (#137)
* Create tab for signing profiles in profiles page

* Add rpc methods to create and get contact profiles

* Create tab for contact profiles

* Create page for create profile

* Fix submit create contact profile form

* Fix get contact profiles request in profiles page

* Fix validation of squeak address in create contact method

* Validate squeak address in create contact profile frontend
2020-07-24 22:43:39 -07:00
Jonathan Zernik
b9c7b10488
Add signing profile seleect to make squeak (#118)
* Add select for signing profile to make squeak page form

* Successfully send makesqueak request from frontend with dropdown select signing profile working

* Handle response when profile or squeak is None

* Fixed props of profiles grid

* Catch exception in queue verifier worker thread
2020-07-22 21:35:27 -07:00
Jonathan Zernik
bd100c3006
Add get profile by address rpc method (#112) 2020-07-21 17:42:19 -07:00
Jonathan Zernik
cb282d9af3
Add get squeaks for address rpc method (#108) 2020-07-21 16:12:26 -07:00
Jonathan Zernik
6924bdb671
Add get signing profiles rpc (#103)
* Add get signing profiles rpc method

* Don't include private key in squeak profile response, only a boolean
2020-07-21 04:23:52 -07:00
Jonathan Zernik
a32ae4f299
Include block time in squeak entry response (#93) 2020-07-19 04:02:31 -07:00
Jonathan Zernik
4bbca79979
Auto format (#92) 2020-07-19 02:31:45 -07:00
Jonathan Zernik
888eeeca6b
Return squeak with profile (#89)
* Return squeakentry with profile using join in admin rpc.

* Return squeak display entry successfully in itest.
2020-07-19 01:25:34 -07:00
Jonathan Zernik
970a991ebc
Return squeakentry with squeak and blockheader from db query (#88) 2020-07-18 23:49:45 -07:00
Jonathan Zernik
6f15f8196d
Save block header in squeak table after verifying block hash of squeak (#87) 2020-07-18 22:35:26 -07:00
Jonathan Zernik
4a2961de54
Add black to make codeformat in makefile (#85) 2020-07-18 19:40:28 -07:00
Jonathan Zernik
87b2a3de7d
Format imports with isort in makefile (#84) 2020-07-18 19:25:31 -07:00
Jonathan Zernik
150570c721
Add squeak node class (#83)
* Add squeaknode class

* Use squeaknode for all handler methods in server handler

* Use squeaknode class in admin server handler
2020-07-18 19:15:05 -07:00
Jonathan Zernik
81a6915506
Improve squeak block verifier (#82)
* Improve squeak block verifier

* Add worker to process unverified squeaks from queue
2020-07-18 17:59:08 -07:00
Jonathan Zernik
404772372f
Add btcd credentials to sqkserver config (#81)
* Add btcd credentials and rpc cert to sqkserver configs

* Start the squeak block verifier worker thread on startup

* Btcd request still failing because of cert

* Got btcd client working

* Use valid block hash and height in itest
2020-07-18 17:19:43 -07:00
Jonathan Zernik
513527cd27
Make squeak with admin rpc (#75)
* Make squeak admin rpc method.

* Get the squeak back after making it through admin rpc make squeak method
2020-07-17 22:12:16 -07:00