Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit 84b78aa
Merge: 7b7338c 499f514
Author: Andy Oknen <[email protected]>
Date:   Fri Sep 9 14:37:44 2022 +0300

    Merge pull request #408 from pocketnetteam/actualization/0.20

    Squashed commit of the following:

commit 499f514
Author: Andy Oknen <[email protected]>
Date:   Fri Sep 9 10:50:15 2022 +0300

    Squashed commit of the following:

    commit aca3fe7
    Merge: 7806576 1cce975
    Author: Andy Oknen <[email protected]>
    Date:   Thu Sep 8 18:40:05 2022 +0300

        Merge pull request #399 from HiHat/patch-1

        Important details regarding address and fixes

    commit 7806576
    Merge: bfaef57 5ce9641
    Author: Andy Oknen <[email protected]>
    Date:   Thu Sep 8 15:09:22 2022 +0300

        Merge pull request #402 from pocketnetteam/andyoknen-patch-1

        Update README.md

    commit 5ce9641
    Author: Andy Oknen <[email protected]>
    Date:   Wed Sep 7 10:51:21 2022 +0300

        Update README.md

    commit 1cce975
    Author: HiHat <[email protected]>
    Date:   Tue Sep 6 19:09:26 2022 +0300

        Important details regarding address and fixes

    commit bfaef57
    Author: Pocketnet Team <[email protected]>
    Date:   Wed Aug 31 13:23:31 2022 +0300

        Create add.tasks.to.project.yml

    commit 8ad81f1
    Author: Pocketnet Team <[email protected]>
    Date:   Tue Aug 30 15:00:15 2022 +0300

        Set maximum depth 1 month for RPC GetMostCommentedFeed

    commit c1e5845
    Author: Pocketnet Team <[email protected]>
    Date:   Tue Aug 30 14:57:23 2022 +0300

        Set fork height for BlockingCancel.hpp

    commit b8bc0ad
    Merge: 8383efb 8abd1bb
    Author: Andy Oknen <[email protected]>
    Date:   Tue Aug 30 14:45:32 2022 +0300

        Merge pull request #385 from pocketnetteam/fix/wrong-key-threshold

        fix: wrong map key threshold_shark_reg_depth -> threshold_whale_reg_depth

    commit 8abd1bb
    Author: Andy Oknen <[email protected]>
    Date:   Tue Aug 30 14:42:46 2022 +0300

        Comment not used now RPC

    commit fee5e39
    Author: Andy Oknen <[email protected]>
    Date:   Tue Aug 30 11:13:50 2022 +0300

        Extend height for fork to 1873500 block

    commit 0ea51a2
    Author: Andy Oknen <[email protected]>
    Date:   Mon Aug 29 14:14:26 2022 +0300

        Fix wrong map key threshold_shark_reg_depth -> threshold_whale_reg_depth

    commit 8383efb
    Author: Pocketnet Team <[email protected]>
    Date:   Thu Aug 25 00:21:32 2022 +0300

        Delete project.add.issues.yml

    commit 95b97de
    Author: Pocketnet Team <[email protected]>
    Date:   Thu Aug 25 00:17:56 2022 +0300

        Create project.add.issues.yml

    commit 9693e62
    Author: Pocketnet Team <[email protected]>
    Date:   Thu Aug 25 00:07:19 2022 +0300

        Create auto_assign.yml

commit 7b7338c
Merge: 88af784 b6b9f45
Author: lostystyg <[email protected]>
Date:   Fri Sep 9 10:41:39 2022 +0300

    Merge pull request #302 from lostystyg/feature/events

    feature: events, push notifications and activities

commit 88af784
Merge: dddb3c6 6280c07
Author: Andy Oknen <[email protected]>
Date:   Thu Sep 8 18:45:15 2022 +0300

    Merge pull request #407 from pocketnetteam/fix/clear-database

    Fix clear database

commit 6280c07
Author: Andy Oknen <[email protected]>
Date:   Thu Sep 8 18:39:43 2022 +0300

    Fix clear database

commit dddb3c6
Merge: 1a03ee9 6d1975a
Author: Andy Oknen <[email protected]>
Date:   Thu Sep 8 15:22:39 2022 +0300

    Merge pull request #401 from pocketnetteam/feat/txindex-disable-always

    feat: disable txindex by default

commit 1a03ee9
Merge: adce55f bc022ec
Author: Andy Oknen <[email protected]>
Date:   Thu Sep 8 15:07:28 2022 +0300

    Merge pull request #406 from pocketnetteam/fix/full-reindex-lists

    fix: full reindex lists

commit b6b9f45
Author: lostystyg <[email protected]>
Date:   Thu Sep 8 15:55:12 2022 +0400

    Fix new line

commit 314c1a8
Author: lostystyg <[email protected]>
Date:   Thu Sep 8 15:52:07 2022 +0400

    Temporarily disable getevents rpc

commit bbd0574
Merge: 32b0e15 adce55f
Author: lostystyg <[email protected]>
Date:   Thu Sep 8 15:51:13 2022 +0400

    Merge remote-tracking branch 'origin/0.21' into feature/events

commit bc022ec
Author: Andy Oknen <[email protected]>
Date:   Thu Sep 8 14:40:46 2022 +0300

    Logging clean

commit 8107ae5
Author: Andy Oknen <[email protected]>
Date:   Thu Sep 8 14:38:53 2022 +0300

    Call rollback lists for full reindexing

commit 32b0e15
Author: lostystyg <[email protected]>
Date:   Thu Sep 8 15:26:58 2022 +0400

    Optimized notifications collecting

commit 24e63f4
Author: lostystyg <[email protected]>
Date:   Thu Sep 8 13:13:52 2022 +0400

    Filling notification result with account info

commit 1344fe5
Author: lostystyg <[email protected]>
Date:   Thu Sep 8 12:29:31 2022 +0400

    Language for short account

commit 710886c
Author: lostystyg <[email protected]>
Date:   Thu Sep 8 12:17:28 2022 +0400

    Correctly filling notifications answer

commit 6d1975a
Author: Andy Oknen <[email protected]>
Date:   Wed Sep 7 10:40:06 2022 +0300

    Disable enabling txindex by default

commit 5b04354
Author: lostystyg <[email protected]>
Date:   Mon Sep 5 15:33:28 2022 +0400

    Removed outdated comment

commit 57f275e
Author: lostystyg <[email protected]>
Date:   Mon Sep 5 15:04:22 2022 +0400

    Cosmetics for blocking query in activities

commit 88ed33a
Author: lostystyg <[email protected]>
Date:   Mon Sep 5 14:47:08 2022 +0400

    Removed number from outputs in activities and notifications

commit 2453407
Author: lostystyg <[email protected]>
Date:   Mon Sep 5 13:04:59 2022 +0400

    Reuse height binder in notifications for money

commit 77f9e87
Author: lostystyg <[email protected]>
Date:   Fri Sep 2 16:41:06 2022 +0400

    Order outputs by number for activities and notifications

commit 8ef4a5b
Merge: 2b3a016 357d155
Author: lostystyg <[email protected]>
Date:   Thu Sep 1 22:28:12 2022 +0400

    Merge remote-tracking branch 'origin/0.21' into feature/events

commit 2b3a016
Author: lostystyg <[email protected]>
Date:   Thu Sep 1 22:24:10 2022 +0400

    Removed trash from badge in activities

commit 66e9054
Author: lostystyg <[email protected]>
Date:   Thu Sep 1 22:22:59 2022 +0400

    Removed trash from badge field in notification queries

commit f8924a6
Author: lostystyg <[email protected]>
Date:   Thu Sep 1 22:21:18 2022 +0400

    Ported notifications from 0.20-based dropped branch

commit 6d8148d
Author: lostystyg <[email protected]>
Date:   Thu Sep 1 12:10:41 2022 +0400

    Added blockings for notifications

commit c23e94c
Author: lostystyg <[email protected]>
Date:   Wed Aug 31 13:29:41 2022 +0400

    Added optional multiple addresses to shortform

commit c29ab12
Author: lostystyg <[email protected]>
Date:   Tue Aug 30 19:06:08 2022 +0400

    Removed unnecessary todo

commit 736748f
Author: lostystyg <[email protected]>
Date:   Tue Aug 30 19:03:32 2022 +0400

    Some todo's

commit cabb060
Author: lostystyg <[email protected]>
Date:   Tue Aug 30 19:02:08 2022 +0400

    All action history for comments and answers in activities

commit cf5021c
Author: lostystyg <[email protected]>
Date:   Tue Aug 30 18:36:51 2022 +0400

    Collect roottxhash in activity queries

commit 328a3ec
Author: lostystyg <[email protected]>
Date:   Tue Aug 30 17:51:10 2022 +0400

    Added root tx hash to shortform

commit f6fa4a4
Author: lostystyg <[email protected]>
Date:   Tue Aug 30 17:42:02 2022 +0400

    Full history for notifications

commit 077f0f2
Author: lostystyg <[email protected]>
Date:   Thu Aug 25 09:35:42 2022 +0400

    Added blocking shorttype

commit e291315
Author: lostystyg <[email protected]>
Date:   Thu Aug 25 09:33:55 2022 +0400

    Removed not up to date todo

commit 8848937
Author: lostystyg <[email protected]>
Date:   Wed Aug 24 16:55:14 2022 +0400

    Removed reposts from activities

commit b5631e7
Merge: e4c102c b7b4991
Author: lostystyg <[email protected]>
Date:   Wed Aug 24 16:21:26 2022 +0400

    Merge remote-tracking branch 'origin/0.21' into feature/events

commit e4c102c
Author: lostystyg <[email protected]>
Date:   Wed Aug 24 15:53:24 2022 +0400

    Validate filters for events on rpc level

commit ac03dcb
Author: lostystyg <[email protected]>
Date:   Wed Aug 24 15:49:33 2022 +0400

    Validate filters for activities on rpc level

commit fcb2fed
Author: lostystyg <[email protected]>
Date:   Wed Aug 24 15:49:10 2022 +0400

    Removed pocketnetteam from events and activities

commit 876e7b5
Author: lostystyg <[email protected]>
Date:   Wed Aug 24 15:35:47 2022 +0400

    Fixed crash if non-valid filters are specified for notifications/activities/events

commit 5732263
Author: lostystyg <[email protected]>
Date:   Mon Aug 22 23:52:32 2022 +0400

    Removed todo for money in activities

commit 9c7438f
Merge: 99c1108 6e53078
Author: lostystyg <[email protected]>
Date:   Mon Aug 22 15:16:13 2022 +0400

    Merge remote-tracking branch 'origin/0.21' into feature/events

commit 99c1108
Author: lostystyg <[email protected]>
Date:   Sat Aug 20 18:02:14 2022 +0400

    Fixed typo in query

commit 6057f91
Author: lostystyg <[email protected]>
Date:   Sat Aug 20 17:53:37 2022 +0400

    Removed commented out queries for notifications

commit 35375ed
Author: lostystyg <[email protected]>
Date:   Sat Aug 20 16:39:23 2022 +0400

    Validating filters for getnotificationssummary

commit f1be170
Author: lostystyg <[email protected]>
Date:   Sat Aug 20 16:38:13 2022 +0400

    Optimization and fixed for notifications summary queries

commit 1d371a0
Author: lostystyg <[email protected]>
Date:   Sat Aug 20 16:36:29 2022 +0400

    Allow to specify union separator

commit fcf526c
Merge: 46edf27 9df85fb
Author: lostystyg <[email protected]>
Date:   Fri Aug 19 19:26:37 2022 +0400

    Merge remote-tracking branch 'origin/fixes/multiplelocks' into feature/events

commit 46edf27
Author: lostystyg <[email protected]>
Date:   Wed Aug 17 18:09:35 2022 +0400

    Notifications summary

commit 29164ac
Author: lostystyg <[email protected]>
Date:   Mon Aug 15 11:22:23 2022 +0400

    Fixed help for getnotifications

commit c26ddf0
Merge: 3a49aa5 1bbe483
Author: lostystyg <[email protected]>
Date:   Fri Aug 12 14:01:39 2022 +0400

    Merge remote-tracking branch 'origin/0.21' into feature/events

commit 3a49aa5
Merge: 5365be1 8a1b0af
Author: lostystyg <[email protected]>
Date:   Thu Aug 11 16:27:31 2022 +0400

    Merge remote-tracking branch 'origin/0.21' into feature/events

commit 5365be1
Author: lostystyg <[email protected]>
Date:   Thu Aug 11 14:52:19 2022 +0400

    Correct ordering by original txs in activities

commit 3339a73
Author: lostystyg <[email protected]>
Date:   Thu Aug 11 14:51:32 2022 +0400

    Removed unnecessary todos

commit 1b256cd
Author: lostystyg <[email protected]>
Date:   Thu Aug 11 14:49:12 2022 +0400

    Explicitly set index for account joins in activities

commit 3ae1ff8
Author: lostystyg <[email protected]>
Date:   Wed Aug 10 11:30:05 2022 +0400

    Fixed address positioning in sql query for activities in ContentScore and CommentScore

commit fa8543b
Merge: a433e3a cc77fdc
Author: lostystyg <[email protected]>
Date:   Wed Aug 10 10:21:20 2022 +0400

    Merge branch '0.21' into feature/events

commit a433e3a
Author: lostystyg <[email protected]>
Date:   Mon Aug 8 10:55:52 2022 +0400

    Removed orig height from activities because it breaks pagination

commit 67febbe
Author: lostystyg <[email protected]>
Date:   Fri Jul 22 10:36:48 2022 +0300

    Fixed referals for events

commit 9845755
Author: lostystyg <[email protected]>
Date:   Fri Jul 22 10:11:06 2022 +0300

    Orig height for activities

commit eb5c9e6
Merge: d60cfd3 c6fa67b
Author: lostystyg <[email protected]>
Date:   Fri Jul 22 09:03:43 2022 +0300

    Merge branch '0.21' into feature/events

commit d60cfd3
Author: lostystyg <[email protected]>
Date:   Wed Jul 20 18:16:05 2022 +0300

    A bit cosmetics for events

commit 86e5df5
Author: lostystyg <[email protected]>
Date:   Wed Jul 20 18:01:43 2022 +0300

    Full comment text in description for events and activities

commit fabcc4e
Author: lostystyg <[email protected]>
Date:   Wed Jul 20 15:30:28 2022 +0300

    Inner join instead of cross for repost in activities

commit f782b68
Author: lostystyg <[email protected]>
Date:   Wed Jul 20 15:26:48 2022 +0300

    Fixed repost queries for activities and events

commit 7e865aa
Author: lostystyg <[email protected]>
Date:   Wed Jul 20 14:56:19 2022 +0300

    Fixed subscriber in activities

commit c01a274
Author: lostystyg <[email protected]>
Date:   Tue Jul 19 18:55:36 2022 +0300

    Optimizing activity queries

commit 91d8529
Author: lostystyg <[email protected]>
Date:   Mon Jul 18 16:36:03 2022 +0300

    Optimizing pocketnetteam notifications

commit c137b10
Author: lostystyg <[email protected]>
Date:   Mon Jul 18 16:26:56 2022 +0300

    Fixed binds for notifications

commit e265c7f
Author: Andy Oknen <[email protected]>
Date:   Mon Jul 18 13:17:59 2022 +0300

    Optimize reposts

commit dadabe0
Author: Andy Oknen <[email protected]>
Date:   Mon Jul 18 13:12:50 2022 +0300

    Fix private content from subscribers (not reposts)

commit 8c423e4
Author: Andy Oknen <[email protected]>
Date:   Mon Jul 18 13:09:11 2022 +0300

    Optimize reposts query

commit 814a958
Author: Andy Oknen <[email protected]>
Date:   Mon Jul 18 12:51:01 2022 +0300

    Fix incoming money

commit 1d0d17e
Author: lostystyg <[email protected]>
Date:   Mon Jul 18 12:32:41 2022 +0300

    getnotification better todos and fixed index

commit e3f474b
Author: lostystyg <[email protected]>
Date:   Fri Jul 15 18:02:37 2022 +0300

    Added optional related content (in case of reposts) for pocketnetteam posts and private content for notifications

commit 427d320
Author: lostystyg <[email protected]>
Date:   Fri Jul 15 18:01:45 2022 +0300

    Fixed reposts for notifications

commit 5c26124
Author: lostystyg <[email protected]>
Date:   Fri Jul 15 18:01:06 2022 +0300

    Moved pocketnetteam posts for notifications to a specific key in answer

commit 5e8b806
Author: lostystyg <[email protected]>
Date:   Wed Jul 13 18:11:33 2022 +0300

    Fixed var name for events contentscore

commit 39b478d
Author: lostystyg <[email protected]>
Date:   Wed Jul 13 18:10:31 2022 +0300

    Ignoring empty avatar for short form account

commit 848abca
Author: lostystyg <[email protected]>
Date:   Wed Jul 13 13:55:24 2022 +0300

    Fixed typo in contentscore for activities

commit aaac24a
Author: lostystyg <[email protected]>
Date:   Wed Jul 13 13:54:54 2022 +0300

    Fixed content description for contentscore in activities

commit 5d7e566
Author: lostystyg <[email protected]>
Date:   Tue Jul 12 11:48:56 2022 +0300

    Inner join instead of cross for activities and events

commit 5bb78a6
Author: lostystyg <[email protected]>
Date:   Tue Jul 12 11:22:39 2022 +0300

    Updated activities query

commit d3c243d
Author: lostystyg <[email protected]>
Date:   Fri Jul 8 17:31:35 2022 +0300

    Comment score activity

commit 0a936ad
Author: lostystyg <[email protected]>
Date:   Fri Jul 8 17:22:20 2022 +0300

    Subscriber activity

commit b5d0c40
Author: lostystyg <[email protected]>
Date:   Fri Jul 8 17:14:00 2022 +0300

    Added comments for activities

commit 638c874
Author: lostystyg <[email protected]>
Date:   Fri Jul 8 17:13:39 2022 +0300

    Fixed answers request for activities

commit f3a2026
Author: lostystyg <[email protected]>
Date:   Fri Jul 8 16:36:07 2022 +0300

    Base activities rpc request

commit 3665c80
Author: lostystyg <[email protected]>
Date:   Fri Jul 8 14:59:17 2022 +0300

    Renamed notifications rpc

commit d560b5a
Author: lostystyg <[email protected]>
Date:   Wed Jul 6 16:18:08 2022 +0300

    Fixed acc's rep for getevents

commit 071f6ed
Author: lostystyg <[email protected]>
Date:   Wed Jul 6 16:17:48 2022 +0300

    Ignore badge fort short account

commit 1576c8d
Author: lostystyg <[email protected]>
Date:   Wed Jul 6 15:50:37 2022 +0300

    Only orig entries for notifications + some optimizations

commit 60e0489
Author: lostystyg <[email protected]>
Date:   Tue Jul 5 15:44:20 2022 +0300

    Updated getnotifications rpc description

commit 5e1740f
Author: lostystyg <[email protected]>
Date:   Tue Jul 5 15:38:25 2022 +0300

    Updated getevents rpc description

commit a665883
Merge: 6828322 9b8e4bd
Author: lostystyg <[email protected]>
Date:   Tue Jul 5 15:11:55 2022 +0300

    Merge branch '0.21' into feature/events

commit 6828322
Author: lostystyg <[email protected]>
Date:   Mon Jul 4 20:34:34 2022 +0300

    Money notification

commit b227a1c
Author: lostystyg <[email protected]>
Date:   Mon Jul 4 19:41:35 2022 +0300

    Extracted common bind for notifications

commit ef32565
Merge: 16a3455 c0f6636
Author: lostystyg <[email protected]>
Date:   Fri Jul 1 19:34:12 2022 +0300

    Merge branch '0.21' into feature/events

commit 16a3455
Author: lostystyg <[email protected]>
Date:   Fri Jul 1 19:14:10 2022 +0300

    Notifications

commit 9c8a9b3
Author: lostystyg <[email protected]>
Date:   Fri Jul 1 19:14:00 2022 +0300

    Fixed ShortAccount

commit 061a7ab
Author: lostystyg <[email protected]>
Date:   Wed Jun 29 17:17:24 2022 +0300

    A bit generalization in processing filters for events

commit b9f3b6a
Author: lostystyg <[email protected]>
Date:   Wed Jun 29 15:38:07 2022 +0300

    Restructured events

commit b8f37cb
Merge: f862108 8465afe
Author: lostystyg <[email protected]>
Date:   Tue Jun 28 14:35:03 2022 +0300

    Merge remote-tracking branch 'origin/0.21' into feature/events

commit f862108
Merge: 8090d0e 4429a24
Author: lostystyg <[email protected]>
Date:   Mon Jun 27 13:37:20 2022 +0300

    Merge branch '0.21' into feature/events

commit 8090d0e
Merge: 21b3c71 5c9755a
Author: lostystyg <[email protected]>
Date:   Mon Jun 27 12:39:57 2022 +0300

    Merge branch 'minor_fixes' into feature/events

commit 21b3c71
Merge: 78eb615 8c9006b
Author: lostystyg <[email protected]>
Date:   Mon Jun 27 12:39:51 2022 +0300

    Merge branch '0.21' into feature/events

commit 5c9755a
Author: lostystyg <[email protected]>
Date:   Fri Jun 24 19:09:19 2022 +0300

    Some minor fixes

commit 78eb615
Merge: 3207e0f 97cf205
Author: lostystyg <[email protected]>
Date:   Thu Jun 23 19:09:06 2022 +0300

    Merge branch '0.21' into feature/events

commit 3207e0f
Merge: 156ed36 67a8917
Author: lostystyg <[email protected]>
Date:   Mon Jun 13 16:15:56 2022 +0300

    Merge branch '0.21' into feature/events

commit 156ed36
Author: lostystyg <[email protected]>
Date:   Fri Jun 10 16:03:17 2022 +0300

    Answer fixes for events

commit 854e6f5
Author: lostystyg <[email protected]>
Date:   Fri Jun 10 14:58:52 2022 +0300

    Donate value for comment event

commit 576fed8
Author: lostystyg <[email protected]>
Date:   Fri Jun 10 13:50:56 2022 +0300

    Fixed events height

commit 337c1ef
Author: lostystyg <[email protected]>
Date:   Fri Jun 10 13:38:03 2022 +0300

    Disabled hight border in related content for events

commit 7b2c630
Author: lostystyg <[email protected]>
Date:   Fri Jun 10 13:27:55 2022 +0300

    Events queries formatting

commit e4f3666
Author: lostystyg <[email protected]>
Date:   Fri Jun 10 13:15:34 2022 +0300

    Comment answer events fulfilled with data

commit 775c8d4
Author: Andy Oknen <[email protected]>
Date:   Fri Jun 10 12:14:10 2022 +0300

    index comment answer

commit 1b5a496
Author: Andy Oknen <[email protected]>
Date:   Fri Jun 10 11:30:03 2022 +0300

    Add height limit for answer comments

commit 6d09852
Author: Andy Oknen <[email protected]>
Date:   Fri Jun 10 11:01:04 2022 +0300

    comment

commit 7805b8e
Author: Andy Oknen <[email protected]>
Date:   Fri Jun 10 10:54:36 2022 +0300

    Sql fixes

commit 011f94f
Author: Andy Oknen <[email protected]>
Date:   Fri Jun 10 09:43:51 2022 +0300

    Fix sql typo

commit a62fd17
Author: lostystyg <[email protected]>
Date:   Fri Jun 10 09:05:43 2022 +0300

    Fixed select ordering in events

commit af47ba0
Author: Andy Oknen <[email protected]>
Date:   Fri Jun 10 08:50:18 2022 +0300

    Fix comment answers sql index

commit c97d7f5
Author: lostystyg <[email protected]>
Date:   Mon Jun 6 16:00:19 2022 +0300

    Fixed description for scores events

commit 134f309
Author: lostystyg <[email protected]>
Date:   Mon Jun 6 15:35:51 2022 +0300

    Throwing in case of event reconstructor error

commit 0c3319a
Author: Andy Oknen <[email protected]>
Date:   Mon May 23 14:11:21 2022 +0300

    Downgrade likers count for testnet

commit 367fa1a
Author: Andy Oknen <[email protected]>
Date:   Fri Apr 22 10:36:33 2022 +0300

    Formatting

commit 0421fbf
Author: lostystyg <[email protected]>
Date:   Mon Jun 6 12:47:01 2022 +0300

    Optimizing event queries

commit aff9e13
Author: lostystyg <[email protected]>
Date:   Mon Jun 6 12:25:58 2022 +0300

    Events fixes

commit 423d4f9
Merge: 7127a3e 039f41f
Author: lostystyg <[email protected]>
Date:   Fri Jun 3 00:34:41 2022 +0300

    Merge remote-tracking branch 'origin/0.21' into feature/events

commit 7127a3e
Author: lostystyg <[email protected]>
Date:   Fri Jun 3 00:34:12 2022 +0300

    Short forms for events

commit b8f1308
Author: lostystyg <[email protected]>
Date:   Fri Jun 3 00:34:02 2022 +0300

    Updated short forms

commit 03c0bd4
Author: lostystyg <[email protected]>
Date:   Tue May 31 01:01:20 2022 +0300

    ShortTxType for short forms

commit dfd80a5
Author: lostystyg <[email protected]>
Date:   Mon May 30 22:52:28 2022 +0300

    Added short forms

commit 0b2aca0
Author: lostystyg <[email protected]>
Date:   Mon May 30 15:26:51 2022 +0300

    Raw sql query to get all events at height for each account

commit 78681c8
Author: lostystyg <[email protected]>
Date:   Fri May 6 17:31:21 2022 +0300

    Forgotten finalizing stmt

commit 8d23c2e
Author: lostystyg <[email protected]>
Date:   Fri May 6 17:01:01 2022 +0300

    Updated args description for getevents

commit 4030e74
Author: lostystyg <[email protected]>
Date:   Fri May 6 16:57:43 2022 +0300

    Events for single address

commit b7ec0f7
Author: lostystyg <[email protected]>
Date:   Fri May 6 16:42:10 2022 +0300

    constant depth for events

commit 1ae34c2
Author: lostystyg <[email protected]>
Date:   Fri May 6 16:40:43 2022 +0300

    privatecontent for events

commit 086a1fa
Author: lostystyg <[email protected]>
Date:   Fri May 6 16:34:57 2022 +0300

    Fixed binding for events

commit d77c6b6
Author: lostystyg <[email protected]>
Date:   Fri May 6 13:37:39 2022 +0300

    Fixed filtering for events

commit 19591f2
Author: lostystyg <[email protected]>
Date:   Thu May 5 23:15:02 2022 +0300

    Updated events

commit 244a198
Author: lostystyg <[email protected]>
Date:   Wed May 4 17:04:33 2022 +0300

    Fixed filtering for events

commit 3deae2e
Author: lostystyg <[email protected]>
Date:   Wed May 4 16:09:02 2022 +0300

    FIlters, height and blocknum for events request

commit 2600f31
Author: lostystyg <[email protected]>
Date:   Sat Apr 30 14:41:04 2022 +0300

    Sorting events by height outside of sqlite

commit 7f3d953
Author: lostystyg <[email protected]>
Date:   Sat Apr 30 00:42:26 2022 +0300

    Fixed events rpc description

commit 192ad0c
Author: lostystyg <[email protected]>
Date:   Sat Apr 30 00:41:11 2022 +0300

    Events optimization

commit 7a51e15
Author: lostystyg <[email protected]>
Date:   Mon Apr 25 18:35:32 2022 +0300

    Better indexing content from private subscribers event

commit 3d8e46b
Author: lostystyg <[email protected]>
Date:   Mon Apr 25 18:30:38 2022 +0300

    Do not check for last for boost events

commit dbea23e
Merge: af71bdf b049782
Author: lostystyg <[email protected]>
Date:   Mon Apr 25 18:20:24 2022 +0300

    Merge remote-tracking branch 'origin/0.21.todo' into feature/events

commit af71bdf
Author: lostystyg <[email protected]>
Date:   Mon Apr 25 18:17:09 2022 +0300

    Base events logic

commit c0e9504
Author: lostystyg <[email protected]>
Date:   Mon Apr 18 17:23:50 2022 +0300

    Method to get
    POCKETNET_TEAM address

commit 9722326
Author: lostystyg <[email protected]>
Date:   Mon Apr 18 17:22:46 2022 +0300

    Using network id instead of string for getting pocketnet developers
  • Loading branch information
brangr committed Sep 10, 2022
1 parent 3730122 commit cae3cea
Show file tree
Hide file tree
Showing 33 changed files with 3,128 additions and 684 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/add.tasks.to.project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Add new tasks to project

on:
issues:
types:
- opened
pull_request:
types:
- opened

jobs:
add-to-project:
name: Add new task to project
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
project-url: https://github.com/users/pocketnetteam/projects/3
github-token: ${{ secrets.AUTO_PROJECT_TOKEN }}
# labeled: bug, needs-triage
# label-operator: OR or AND
22 changes: 16 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ PocketnetCore is distributed in two ways: binary installer and build from source
Minimum system requirements:
- 2 core x86-64 CPU
- 4GB RAM
- 100 GB harddrive
- 150 GB harddrive
- 10 Mbps internet connection

Recommended System Requirements
Expand Down Expand Up @@ -75,7 +75,6 @@ $
$ pocketcoin-cli --help
$ pocketcoin-tx --help
```

More information : https://hub.docker.com/r/pocketnetteam/pocketnet.core

# First full synchronization
Expand All @@ -100,9 +99,8 @@ $ pocketcoind --help
# Latest snapshot archive
https://snapshot.pocketnet.app/latest.tgz
https://snapshot.pocketnet.app/latest.bz2
```
4. There must be archive tgz with 5 directories:
3. There must be archive tgz with 5 directories:
```shell
blocks\
- ...
Expand Down Expand Up @@ -141,20 +139,32 @@ $ pocketcoind --help
# for bz2 archive
$ tar -xjf latest.tgz -C ./
# create wallets directory if not exist
$ mkdir wallets
```
5. Make sure the folders and files inside are not set to "read only"
5. Make sure the folders and files inside are not set to "read only" (grant permissions to all files for current user via ```chmod -R <username> ~/.pocketcoin/``` unix command)
6. Start the node.
**VERY IMPORTANT**: save the **wallet.dat** file or **wallets/** files before cleaning the directory. It is recommended to even save these files somewhere for backup.
# Get address (for PKOIN receiving) and private key info (Linux, Docker)
```shell
# get address for PKOIN receiving
$ pocketcoin-cli getnewaddress "node"
<received_adress>
$
# get private key info for private safe storage
$ pocketcoin-cli dumpprivkey "<received_address>"
```

# Build from source code
See `doc/build-*.md` files for build instructions.


# Help
You can get help and useful information from different sources:
- https://pocketnet.app/help
- https://bastyon.com/help
- https://github.com/pocketnetteam/pocketnet.core/blob/master/doc/public_access.md
- https://github.com/pocketnetteam/pocketnet.core/tree/master/doc/help
- https://github.com/pocketnetteam/pocketnet.core/blob/master/share/examples/pocketcoin.conf
Expand Down
2 changes: 2 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,8 @@ add_library(${POCKETDB}
pocketdb/models/shortform/ShortAccount.h
pocketdb/models/shortform/ShortAccount.cpp
pocketdb/models/shortform/ShortTxType.h
pocketdb/models/shortform/ShortTxOutput.h
pocketdb/models/shortform/ShortTxOutput.cpp
)
target_link_libraries(${POCKETDB} PRIVATE ${POCKETCOIN_COMMON} ${POCKETCOIN_UTIL} ${POCKETCOIN_CRYPTO} univalue leveldb)

Expand Down
6 changes: 4 additions & 2 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ POCKETDB_H = \
pocketdb/models/shortform/ShortForm.h \
pocketdb/models/shortform/ShortAccount.h \
pocketdb/models/shortform/ShortTxData.h \
pocketdb/models/shortform/ShortTxType.h
pocketdb/models/shortform/ShortTxType.h \
pocketdb/models/shortform/ShortTxOutput.h

# PocketDb CPP
POCKETDB_CPP = \
Expand Down Expand Up @@ -312,7 +313,8 @@ POCKETDB_CPP = \
pocketdb/models/dto/moderation/Flag.cpp \
pocketdb/models/shortform/ShortForm.cpp \
pocketdb/models/shortform/ShortAccount.cpp \
pocketdb/models/shortform/ShortTxData.cpp
pocketdb/models/shortform/ShortTxData.cpp \
pocketdb/models/shortform/ShortTxOutput.cpp

# CORE
POCKETCOIN_CORE_H = \
Expand Down
1 change: 1 addition & 0 deletions src/httpserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,7 @@ void HTTPSocket::BindAddress(std::string ipAddr, int port)
{
CNetAddr addr;
if (ipAddr.empty() || (LookupHost(ipAddr, addr, false) && addr.IsBindAny())) {
// TODO (brangr, lostystyg): only for private ports
LogPrintf("WARNING: the RPC server is not safe to expose to untrusted networks such as the public internet\n");
}
m_boundSockets.push_back(bind_handle);
Expand Down
9 changes: 6 additions & 3 deletions src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2127,9 +2127,12 @@ bool AppInitMain(const util::Ref& context, NodeContext& node, interfaces::BlockA
fFeeEstimatesInitialized = true;

// ********************************************************* Step 8: start indexers
// TODO (brangr): maybe not needed?
g_txindex = MakeUnique<TxIndex>(nTxIndexCache, false, fReindex);
g_txindex->Start();
// TODO (brangr): 0.21.0 check need txindex test
if (args.GetBoolArg("-txindex", DEFAULT_TXINDEX))
{
g_txindex = MakeUnique<TxIndex>(nTxIndexCache, false, fReindex);
g_txindex->Start();
}

for (const auto& filter_type : g_enabled_filter_types) {
InitBlockFilterIndex(filter_type, filter_index_cache, false, fReindex);
Expand Down
8 changes: 4 additions & 4 deletions src/pocketdb/helpers/PocketnetHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ namespace PocketHelpers
{
using namespace std;

static map<string, vector<string>> PocketnetDevelopers{
{"main", {
static map<NetworkId, vector<string>> PocketnetDevelopers{
{NetworkId::NetworkMain, {
"P9EkPPJPPRYxmK541WJkmH8yBM4GuWDn2m",
"PUGBtfmivvcg1afnEt9vqVi3yZ7v6S9BcC",
"PDtuJDVXaq82HH7fafgwBmcoxbqqWdJ9u9",
Expand All @@ -28,7 +28,7 @@ namespace PocketHelpers
"PMyjUzHtzsmbejB87ATbrcQNatiGsT4NzG",
"PHdW4pwWbFdoofVhSEfPSHgradmrvZdbE5"
}},
{"test", {
{NetworkId::NetworkTest, {
"TG69Jioc81PiwMAJtRanfZqUmRY4TUG7nt",
"TLnfXcFNxxrpEUUzrzZvbW7b9gWFtAcc8x",
"TYMo5HRFpc7tqzccaVifx7s2x2ZDqMikCR",
Expand All @@ -37,7 +37,7 @@ namespace PocketHelpers

static inline bool IsDeveloper(const string& address)
{
auto net = Params().NetworkIDString();
auto net = Params().NetworkID();
return find(PocketnetDevelopers[net].begin(), PocketnetDevelopers[net].end(), address) != PocketnetDevelopers[net].end();
}

Expand Down
56 changes: 55 additions & 1 deletion src/pocketdb/helpers/ShortFormHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ static const std::map<PocketDb::ShortTxType, std::string>& GetTypesMap() {
{ PocketDb::ShortTxType::PrivateContent, "privatecontent" },
{ PocketDb::ShortTxType::Boost, "boost" },
{ PocketDb::ShortTxType::Repost, "repost" },
{ PocketDb::ShortTxType::Blocking, "blocking" }
};
return typesMap;
}
Expand All @@ -41,7 +42,60 @@ bool PocketHelpers::ShortTxFilterValidator::Notifications::IsFilterAllowed(Pocke
PocketDb::ShortTxType::Money,
PocketDb::ShortTxType::Answer,
PocketDb::ShortTxType::PrivateContent,
PocketDb::ShortTxType::Boost
PocketDb::ShortTxType::Boost,
PocketDb::ShortTxType::Referal,
PocketDb::ShortTxType::Comment,
PocketDb::ShortTxType::Subscriber,
PocketDb::ShortTxType::CommentScore,
PocketDb::ShortTxType::ContentScore,
PocketDb::ShortTxType::Repost
};

return allowed.find(type) != allowed.end();
}

bool PocketHelpers::ShortTxFilterValidator::NotificationsSummary::IsFilterAllowed(PocketDb::ShortTxType type)
{
static const std::set<PocketDb::ShortTxType> allowed = {
PocketDb::ShortTxType::Referal,
PocketDb::ShortTxType::Comment,
PocketDb::ShortTxType::Subscriber,
PocketDb::ShortTxType::CommentScore,
PocketDb::ShortTxType::ContentScore,
PocketDb::ShortTxType::Repost,
};

return allowed.find(type) != allowed.end();
}

bool PocketHelpers::ShortTxFilterValidator::Activities::IsFilterAllowed(PocketDb::ShortTxType type)
{
static const std::set<PocketDb::ShortTxType> allowed = {
PocketDb::ShortTxType::Answer,
PocketDb::ShortTxType::Comment,
PocketDb::ShortTxType::Subscriber,
PocketDb::ShortTxType::CommentScore,
PocketDb::ShortTxType::ContentScore,
PocketDb::ShortTxType::Boost,
PocketDb::ShortTxType::Blocking,
};

return allowed.find(type) != allowed.end();
}

bool PocketHelpers::ShortTxFilterValidator::Events::IsFilterAllowed(PocketDb::ShortTxType type)
{
static const std::set<PocketDb::ShortTxType> allowed = {
PocketDb::ShortTxType::Money,
PocketDb::ShortTxType::Referal,
PocketDb::ShortTxType::Answer,
PocketDb::ShortTxType::Comment,
PocketDb::ShortTxType::Subscriber,
PocketDb::ShortTxType::CommentScore,
PocketDb::ShortTxType::ContentScore,
PocketDb::ShortTxType::PrivateContent,
PocketDb::ShortTxType::Boost,
PocketDb::ShortTxType::Repost,
};

return allowed.find(type) != allowed.end();
Expand Down
18 changes: 18 additions & 0 deletions src/pocketdb/helpers/ShortFormHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,24 @@ namespace PocketHelpers
public:
static bool IsFilterAllowed(PocketDb::ShortTxType type);
};

class NotificationsSummary
{
public:
static bool IsFilterAllowed(PocketDb::ShortTxType type);
};

class Activities
{
public:
static bool IsFilterAllowed(PocketDb::ShortTxType type);
};

class Events
{
public:
static bool IsFilterAllowed(PocketDb::ShortTxType type);
};
};

// STMT here is used to avoid including here any of sqlite3 headers, however
Expand Down
3 changes: 3 additions & 0 deletions src/pocketdb/migrations/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,13 @@ namespace PocketDb
create index if not exists Transactions_Id_Last on Transactions (Id, Last);
create index if not exists Transactions_Hash_Height on Transactions (Hash, Height);
create index if not exists Transactions_Height_Type on Transactions (Height, Type);
create index if not exists Transactions_Hash_Type_Height on Transactions (Hash, Type, Height);
create index if not exists TxOutputs_AddressHash_TxHeight_TxHash on TxOutputs (AddressHash, TxHeight, TxHash);
create index if not exists Transactions_Type_Last_String1_Height_Id on Transactions (Type, Last, String1, Height, Id);
create index if not exists Transactions_Type_Last_String2_Height on Transactions (Type, Last, String2, Height);
create index if not exists Transactions_Type_Last_String3_Height on Transactions (Type, Last, String3, Height);
create index if not exists Transactions_Type_Last_String4_Height on Transactions (Type, Last, String4, Height);
create index if not exists Transactions_Type_Last_String5_Height on Transactions (Type, Last, String5, Height);
create index if not exists Transactions_Type_Last_String1_String2_Height on Transactions (Type, Last, String1, String2, Height);
create index if not exists Transactions_Type_Last_Height_String5_String1 on Transactions (Type, Last, Height, String5, String1);
create index if not exists Transactions_Type_Last_Height_Id on Transactions (Type, Last, Height, Id);
Expand Down
11 changes: 11 additions & 0 deletions src/pocketdb/models/shortform/ShortAccount.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ UniValue PocketDb::ShortAccount::Serialize() const
data.pushKV("avatar", m_avatar);
data.pushKV("badge", m_badge);
data.pushKV("reputation", m_reputation);
if (m_lang) data.pushKV("lang", *m_lang);

return data;
}
Expand Down Expand Up @@ -64,3 +65,13 @@ void PocketDb::ShortAccount::SetReputation(const int64_t& reputation)
{
m_reputation = reputation;
}

const std::optional<std::string>& PocketDb::ShortAccount::GetLang() const
{
return m_lang;
}

void PocketDb::ShortAccount::SetLang(const std::optional<std::string>& lang)
{
m_lang = lang;
}
5 changes: 4 additions & 1 deletion src/pocketdb/models/shortform/ShortAccount.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <univalue.h>

#include <string>

#include <optional>

namespace PocketDb
{
Expand All @@ -27,10 +27,13 @@ namespace PocketDb
void SetBadge(const std::string& name);
const int64_t& GetReputation() const;
void SetReputation(const int64_t& reputation);
const std::optional<std::string>& GetLang() const;
void SetLang(const std::optional<std::string>& lang);
private:
std::string m_avatar;
std::string m_name;
std::string m_badge;
std::optional<std::string> m_lang;
int64_t m_reputation {0};
};
}
Expand Down
1 change: 0 additions & 1 deletion src/pocketdb/models/shortform/ShortForm.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ namespace PocketDb
class ShortForm
{
public:
// TODO tomorrow: serialize me correctly!!!
ShortForm(PocketDb::ShortTxType type, ShortTxData txData, std::optional<ShortTxData> relatedContent);

UniValue Serialize() const;
Expand Down
Loading

0 comments on commit cae3cea

Please sign in to comment.