Skip to content
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

feat: delete account #405

Merged
merged 53 commits into from
Sep 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
d0f28ed
Add type for account deleting transaction
andyoknen Sep 8, 2022
4042f1e
Refactoring models & AccountDelete transaction
andyoknen Sep 9, 2022
d100eb5
Fix check height in ExistsInMempool
Sep 9, 2022
f1a4ec5
Refactoring account editing
Sep 10, 2022
3730122
Move to base class opReturnCheck
Sep 10, 2022
cae3cea
Squashed commit of the following:
Sep 10, 2022
2718a6e
Squashed commit of the following:
Sep 10, 2022
293a1da
Revert
andyoknen Sep 12, 2022
51f4f48
Fix delete transaction helper
andyoknen Sep 12, 2022
04b06f0
Fix check register deleted account
andyoknen Sep 12, 2022
4a4999f
Deleted account does not have payload
only1question Sep 12, 2022
b846cc1
Fixed typo in GetProfileFeed
only1question Sep 12, 2022
ef79517
Remove data from deleted account in last comments
only1question Sep 12, 2022
79b5121
Fix begin/commit/abort sql transaction
andyoknen Sep 13, 2022
2c54bc0
refact
andyoknen Sep 13, 2022
409f988
Merge branch 'feat/delete-account' of github.com:pocketnetteam/pocket…
andyoknen Sep 13, 2022
f9a61cb
wallet log clean
andyoknen Sep 13, 2022
3988d12
Clean logs
andyoknen Sep 13, 2022
a7b17d2
Fix check register block
andyoknen Sep 13, 2022
07b58dc
Clean logs
andyoknen Sep 13, 2022
ea6f8fb
Remove data from deleted account in all feeds
only1question Sep 13, 2022
de9a7a0
Fix debug typo
andyoknen Sep 13, 2022
bb7cd8e
Fixed typo in GetLastComments
only1question Sep 13, 2022
fd4b1b5
Added flag if account deleted in GetAccountState
only1question Sep 13, 2022
ec47a95
// TODO (brangr): delete
andyoknen Sep 13, 2022
3cd138d
Merge branch 'feat/delete-account' of github.com:pocketnetteam/pocket…
andyoknen Sep 13, 2022
2ae9b3d
Include deleted accounts in block lists
only1question Sep 13, 2022
b9521ff
Add 170 for get user account data
andyoknen Sep 14, 2022
f169c83
Complete check deleted account
andyoknen Sep 14, 2022
a8178b4
consensus add deleted account check 2
andyoknen Sep 14, 2022
f6fbe7a
Remove comments from deleted accounts in GetCommentsByPost
only1question Sep 14, 2022
98abc0b
refactoring
andyoknen Sep 14, 2022
6368c69
Fix getuseraddress for empty request
andyoknen Sep 14, 2022
fa76aff
Fix check double account transaction in block
andyoknen Sep 14, 2022
8842bab
1
andyoknen Sep 14, 2022
6e537ae
Fixed mixing stake treshhold values
lostystyg Sep 14, 2022
a62cc9a
Moved mutex to a proper place
lostystyg Sep 14, 2022
45d2ae1
Fixed cleaning sqlite
lostystyg Sep 14, 2022
a83e7e7
1
andyoknen Sep 15, 2022
427d88d
Fork height for enabling account delete transaction
andyoknen Sep 15, 2022
cebd3e2
Fix typos
andyoknen Sep 15, 2022
7da2c3e
Return check opreturn for next detect checkpoints
andyoknen Sep 15, 2022
af6a362
Description for stake threshold values
lostystyg Sep 15, 2022
2adff23
Optimizing coinstake logic
lostystyg Sep 15, 2022
9f86f34
Merge branch 'feat/delete-account' of github.com:pocketnetteam/pocket…
lostystyg Sep 15, 2022
b3a1810
Fix checkpoints for double users
andyoknen Sep 15, 2022
803bc79
Remove counting referrals from account profile
only1question Sep 15, 2022
93dd0c8
SQLOptimizations
andyoknen Sep 15, 2022
39ff611
Fix user checkpoint check
andyoknen Sep 15, 2022
e6a0c80
Move notifier repository to self db connection
andyoknen Sep 15, 2022
fc7f388
Extend sendtoaddress with destaddress for change
andyoknen Sep 15, 2022
5da5741
Merge remote-tracking branch 'origin/0.21' into feat/delete-account
lostystyg Sep 16, 2022
667b9f2
Revert "Optimizing coinstake logic" and "Fixed mixing stake treshhold…
lostystyg Sep 16, 2022
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
119 changes: 65 additions & 54 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -557,74 +557,84 @@ set(POCKETDB pocketdb)
add_library(${POCKETDB}
pocketdb/migrations/base.h
pocketdb/migrations/main.h
pocketdb/migrations/main.cpp
pocketdb/migrations/web.h
pocketdb/migrations/web.cpp

pocketdb/models/base/PocketTypes.h
pocketdb/models/base/Base.h
pocketdb/models/base/Payload.h
pocketdb/models/base/Transaction.h
pocketdb/models/base/TransactionInput.h
pocketdb/models/base/TransactionOutput.h
pocketdb/models/base/SocialTransaction.h
pocketdb/models/base/Rating.h
pocketdb/models/base/DtoModels.h
pocketdb/models/dto/Default.h
pocketdb/models/dto/Coinbase.h
pocketdb/models/dto/Coinstake.h
pocketdb/models/dto/Post.h
pocketdb/models/dto/User.h
pocketdb/models/dto/ScoreContent.h
pocketdb/models/dto/ScoreComment.h
pocketdb/models/dto/Blocking.h
pocketdb/models/dto/BlockingCancel.h
pocketdb/models/dto/CommentEdit.h
pocketdb/models/dto/CommentDelete.h
pocketdb/models/dto/Subscribe.h
pocketdb/models/dto/SubscribePrivate.h
pocketdb/models/dto/SubscribeCancel.h
pocketdb/models/dto/Complain.h
pocketdb/models/dto/Video.h
pocketdb/models/dto/AccountSetting.h
pocketdb/models/dto/ContentDelete.h
pocketdb/models/dto/BoostContent.h
pocketdb/migrations/main.cpp
pocketdb/migrations/web.cpp
pocketdb/models/base/Base.h
pocketdb/models/base/Base.cpp
pocketdb/models/base/Payload.h
pocketdb/models/base/Payload.cpp
pocketdb/models/base/Transaction.h
pocketdb/models/base/Transaction.cpp
pocketdb/models/base/TransactionInput.h
pocketdb/models/base/TransactionInput.cpp
pocketdb/models/base/TransactionOutput.h
pocketdb/models/base/TransactionOutput.cpp
pocketdb/models/base/SocialTransaction.h
pocketdb/models/base/SocialTransaction.cpp
pocketdb/models/base/Rating.h
pocketdb/models/base/Rating.cpp
pocketdb/models/dto/Default.cpp
pocketdb/models/dto/Coinbase.cpp
pocketdb/models/dto/Coinstake.cpp
pocketdb/models/dto/Content.h
pocketdb/models/dto/Content.cpp
pocketdb/models/dto/Post.cpp
pocketdb/models/dto/Video.cpp
pocketdb/models/dto/Article.h
pocketdb/models/dto/Article.cpp
pocketdb/models/dto/User.cpp
pocketdb/models/dto/ScoreContent.cpp
pocketdb/models/dto/ScoreComment.cpp
pocketdb/models/dto/Blocking.cpp
pocketdb/models/dto/BlockingCancel.cpp
pocketdb/models/dto/Comment.h
pocketdb/models/dto/Comment.cpp
pocketdb/models/dto/CommentEdit.cpp
pocketdb/models/dto/CommentDelete.cpp
pocketdb/models/dto/Subscribe.cpp
pocketdb/models/dto/SubscribePrivate.cpp
pocketdb/models/dto/SubscribeCancel.cpp
pocketdb/models/dto/Complain.cpp
pocketdb/models/dto/AccountSetting.cpp
pocketdb/models/dto/ContentDelete.cpp

pocketdb/models/dto/money/Default.h
pocketdb/models/dto/money/Default.cpp
pocketdb/models/dto/money/Coinbase.h
pocketdb/models/dto/money/Coinbase.cpp
pocketdb/models/dto/money/Coinstake.h
pocketdb/models/dto/money/Coinstake.cpp

pocketdb/models/dto/account/User.h
pocketdb/models/dto/account/User.cpp
pocketdb/models/dto/account/Setting.h
pocketdb/models/dto/account/Setting.cpp
pocketdb/models/dto/account/Delete.h
pocketdb/models/dto/account/Delete.cpp

pocketdb/models/dto/content/Content.h
pocketdb/models/dto/content/Content.cpp
pocketdb/models/dto/content/ContentDelete.h
pocketdb/models/dto/content/ContentDelete.cpp
pocketdb/models/dto/content/Post.h
pocketdb/models/dto/content/Post.cpp
pocketdb/models/dto/content/Video.h
pocketdb/models/dto/content/Video.cpp
pocketdb/models/dto/content/Article.h
pocketdb/models/dto/content/Article.cpp
pocketdb/models/dto/content/Comment.h
pocketdb/models/dto/content/Comment.cpp
pocketdb/models/dto/content/CommentEdit.h
pocketdb/models/dto/content/CommentEdit.cpp
pocketdb/models/dto/content/CommentDelete.h
pocketdb/models/dto/content/CommentDelete.cpp

pocketdb/models/dto/action/ScoreContent.h
pocketdb/models/dto/action/ScoreContent.cpp
pocketdb/models/dto/action/ScoreComment.h
pocketdb/models/dto/action/ScoreComment.cpp
pocketdb/models/dto/action/Blocking.h
pocketdb/models/dto/action/Blocking.cpp
pocketdb/models/dto/action/BlockingCancel.h
pocketdb/models/dto/action/BlockingCancel.cpp
pocketdb/models/dto/action/Subscribe.h
pocketdb/models/dto/action/Subscribe.cpp
pocketdb/models/dto/action/SubscribePrivate.h
pocketdb/models/dto/action/SubscribePrivate.cpp
pocketdb/models/dto/action/SubscribeCancel.h
pocketdb/models/dto/action/SubscribeCancel.cpp
pocketdb/models/dto/action/Complain.h
pocketdb/models/dto/action/Complain.cpp
pocketdb/models/dto/action/BoostContent.h
pocketdb/models/dto/action/BoostContent.cpp

pocketdb/models/dto/moderation/Flag.h
pocketdb/models/dto/moderation/Flag.cpp

pocketdb/models/web/WebTag.h
pocketdb/models/web/WebContent.h
pocketdb/models/dto/BoostContent.cpp
pocketdb/models/web/SearchRequest.h

pocketdb/models/shortform/ShortForm.h
pocketdb/models/shortform/ShortForm.cpp
pocketdb/models/shortform/ShortTxData.h
Expand Down Expand Up @@ -1127,8 +1137,9 @@ add_library(${POCKETCOIN_SERVER}
pocketdb/consensus/social/Subscribe.hpp
pocketdb/consensus/social/SubscribeCancel.hpp
pocketdb/consensus/social/SubscribePrivate.hpp
pocketdb/consensus/social/User.hpp
pocketdb/consensus/social/AccountUser.hpp
pocketdb/consensus/social/AccountSetting.hpp
pocketdb/consensus/social/AccountDelete.hpp
pocketdb/consensus/social/ContentDelete.hpp
pocketdb/consensus/social/BoostContent.hpp
pocketdb/consensus/moderation/Flag.hpp
Expand Down
94 changes: 48 additions & 46 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ POCKETDB_H = \
pocketdb/consensus/social/Subscribe.hpp \
pocketdb/consensus/social/SubscribeCancel.hpp \
pocketdb/consensus/social/SubscribePrivate.hpp \
pocketdb/consensus/social/User.hpp \
pocketdb/consensus/social/AccountUser.hpp \
pocketdb/consensus/social/AccountSetting.hpp \
pocketdb/consensus/social/ContentDelete.hpp \
\
Expand All @@ -194,28 +194,29 @@ POCKETDB_H = \
pocketdb/models/base/Payload.h \
pocketdb/models/base/DtoModels.h \
\
pocketdb/models/dto/Default.h \
pocketdb/models/dto/Coinbase.h \
pocketdb/models/dto/Coinstake.h \
pocketdb/models/dto/Content.h \
pocketdb/models/dto/Post.h \
pocketdb/models/dto/ContentDelete.h \
pocketdb/models/dto/BoostContent.h \
pocketdb/models/dto/AccountSetting.h \
pocketdb/models/dto/User.h \
pocketdb/models/dto/ScoreContent.h \
pocketdb/models/dto/ScoreComment.h \
pocketdb/models/dto/Blocking.h \
pocketdb/models/dto/BlockingCancel.h \
pocketdb/models/dto/Comment.h \
pocketdb/models/dto/CommentEdit.h \
pocketdb/models/dto/CommentDelete.h \
pocketdb/models/dto/Subscribe.h \
pocketdb/models/dto/SubscribePrivate.h \
pocketdb/models/dto/SubscribeCancel.h \
pocketdb/models/dto/Complain.h \
pocketdb/models/dto/Video.h \
pocketdb/models/dto/Article.h \
pocketdb/models/dto/money/Default.h \
pocketdb/models/dto/money/Coinbase.h \
pocketdb/models/dto/money/Coinstake.h \
pocketdb/models/dto/content/Content.h \
pocketdb/models/dto/content/Post.h \
pocketdb/models/dto/content/ContentDelete.h \
pocketdb/models/dto/action/BoostContent.h \
pocketdb/models/dto/account/Delete.h \
pocketdb/models/dto/account/Setting.h \
pocketdb/models/dto/account/User.h \
pocketdb/models/dto/action/ScoreContent.h \
pocketdb/models/dto/action/ScoreComment.h \
pocketdb/models/dto/action/Blocking.h \
pocketdb/models/dto/action/BlockingCancel.h \
pocketdb/models/dto/content/Comment.h \
pocketdb/models/dto/content/CommentEdit.h \
pocketdb/models/dto/content/CommentDelete.h \
pocketdb/models/dto/action/Subscribe.h \
pocketdb/models/dto/action/SubscribePrivate.h \
pocketdb/models/dto/action/SubscribeCancel.h \
pocketdb/models/dto/action/Complain.h \
pocketdb/models/dto/content/Video.h \
pocketdb/models/dto/content/Article.h \
pocketdb/models/dto/moderation/Flag.h \
\
pocketdb/models/web/WebTag.h \
Expand Down Expand Up @@ -285,29 +286,30 @@ POCKETDB_CPP = \
pocketdb/web/PocketRpc.cpp \
pocketdb/web/WebRpcUtils.cpp \
\
pocketdb/models/dto/Default.cpp \
pocketdb/models/dto/Coinbase.cpp \
pocketdb/models/dto/Coinstake.cpp \
pocketdb/models/dto/Content.cpp \
pocketdb/models/dto/Post.cpp \
pocketdb/models/dto/ContentDelete.cpp \
pocketdb/models/dto/BoostContent.cpp \
pocketdb/models/dto/AccountSetting.cpp \
pocketdb/models/dto/User.cpp \
pocketdb/models/dto/ScoreContent.cpp \
pocketdb/models/dto/ScoreComment.cpp \
pocketdb/models/dto/Blocking.cpp \
pocketdb/models/dto/BlockingCancel.cpp \
pocketdb/models/dto/Comment.cpp \
pocketdb/models/dto/CommentEdit.cpp \
pocketdb/models/dto/CommentDelete.cpp \
pocketdb/models/dto/Subscribe.cpp \
pocketdb/models/dto/SubscribePrivate.cpp \
pocketdb/models/dto/SubscribeCancel.cpp \
pocketdb/models/dto/Complain.cpp \
pocketdb/models/dto/Video.cpp \
pocketdb/models/dto/BoostContent.cpp \
pocketdb/models/dto/Article.cpp \
pocketdb/models/dto/money/Default.cpp \
pocketdb/models/dto/money/Coinbase.cpp \
pocketdb/models/dto/money/Coinstake.cpp \
pocketdb/models/dto/content/Content.cpp \
pocketdb/models/dto/content/Post.cpp \
pocketdb/models/dto/content/ContentDelete.cpp \
pocketdb/models/dto/action/BoostContent.cpp \
pocketdb/models/dto/account/Setting.cpp \
pocketdb/models/dto/account/Delete.cpp \
pocketdb/models/dto/account/User.cpp \
pocketdb/models/dto/action/ScoreContent.cpp \
pocketdb/models/dto/action/ScoreComment.cpp \
pocketdb/models/dto/action/Blocking.cpp \
pocketdb/models/dto/action/BlockingCancel.cpp \
pocketdb/models/dto/content/Comment.cpp \
pocketdb/models/dto/content/CommentEdit.cpp \
pocketdb/models/dto/content/CommentDelete.cpp \
pocketdb/models/dto/action/Subscribe.cpp \
pocketdb/models/dto/action/SubscribePrivate.cpp \
pocketdb/models/dto/action/SubscribeCancel.cpp \
pocketdb/models/dto/action/Complain.cpp \
pocketdb/models/dto/content/Video.cpp \
pocketdb/models/dto/action/BoostContent.cpp \
pocketdb/models/dto/content/Article.cpp \
pocketdb/models/dto/moderation/Flag.cpp \
pocketdb/models/shortform/ShortForm.cpp \
pocketdb/models/shortform/ShortAccount.cpp \
Expand Down
6 changes: 3 additions & 3 deletions src/consensus/params.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ struct Params {
unsigned int nStakeMinAge;
int64_t nPosTargetSpacing;
int64_t nPosTargetTimespan;
int64_t nStakeCombineThreshold;
int64_t nStakeCombineThreshold; // Minimum required SUM of coinstake inputs
int64_t nStakeSplitThreshold;
int64_t nStakeMinimumThreshold;
int64_t nStakeMaximumThreshold;
int64_t nStakeMinimumThreshold; // Minimum required value if single (!) coinstake input
int64_t nStakeMaximumThreshold; // Maximum meaningful sum of coinstake inputs

int nDailyBlockCount;
unsigned int nModifierInterval;
Expand Down
4 changes: 2 additions & 2 deletions src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ void ShutdownPocketServices()
PocketDb::ChainRepoInst.Destroy();
PocketDb::RatingsRepoInst.Destroy();
PocketDb::ConsensusRepoInst.Destroy();
PocketDb::NotifierRepoInst.Destroy();
PocketDb::MigrationRepoInst.Destroy();

PocketDb::SQLiteDbInst.DetachDatabase("web");
Expand Down Expand Up @@ -223,7 +222,7 @@ void Shutdown(NodeContext& node)

if (notifyClientsThread)
notifyClientsThread->Stop();

StopHTTPRPC();
StopREST();
StopSTATIC();
Expand Down Expand Up @@ -485,6 +484,7 @@ void SetupServerArgs(NodeContext& node)
argsman.AddArg("-skip-validation=<n>", "Skip consensus check and validation before N block logic if running with -reindex or -reindex-chainstate", ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
argsman.AddArg("-reindex-start", "Start block for -reindex logic (Deafult: 0)", ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
argsman.AddArg("-mempoolclean", "Clean mempool on loading and delete or non blocked transactions from sqlite db", ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
argsman.AddArg("-disconnectlast", "Disconnect latest blocks up to the specified height (Default: -1)", false, OptionsCategory::COMMANDS);

#if HAVE_SYSTEM
argsman.AddArg("-startupnotify=<cmd>", "Execute command on startup.", ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
Expand Down
4 changes: 0 additions & 4 deletions src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -400,10 +400,7 @@ CNode* CConnman::ConnectNode(CAddress addrConnect, const char *pszDest, bool fCo
// Look for an existing connection
CNode* pnode = FindNode(static_cast<CService>(addrConnect));
if (pnode)
{
LogPrintf("Failed to open new connection, already connected\n");
return nullptr;
}
}

/// debug print
Expand All @@ -430,7 +427,6 @@ CNode* CConnman::ConnectNode(CAddress addrConnect, const char *pszDest, bool fCo
if (pnode)
{
pnode->MaybeSetAddrName(std::string(pszDest));
LogPrintf("Failed to open new connection, already connected\n");
return nullptr;
}
}
Expand Down
3 changes: 1 addition & 2 deletions src/pocketdb/SQLiteDatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "validation.h"
#include <node/ui_interface.h>

#include "pocketdb/services/Serializer.h"
// #include "pocketdb/services/Serializer.h"

namespace PocketDb
{
Expand Down Expand Up @@ -62,7 +62,6 @@ namespace PocketDb
ChainRepoInst.Init();
RatingsRepoInst.Init();
ConsensusRepoInst.Init();
NotifierRepoInst.Init();
SystemRepoInst.Init();
MigrationRepoInst.Init();

Expand Down
1 change: 1 addition & 0 deletions src/pocketdb/consensus/Base.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ namespace PocketConsensus
SocialConsensusResult_SelfFlag = 64,
SocialConsensusResult_ExceededLimit = 65,
SocialConsensusResult_LowReputation = 66,
SocialConsensusResult_AccountDeleted = 67,
};

static inline string SocialConsensusResultString(SocialConsensusResult code)
Expand Down
11 changes: 8 additions & 3 deletions src/pocketdb/consensus/Helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ namespace PocketConsensus
VideoConsensusFactory SocialConsensusHelper::m_videoFactory;
ArticleConsensusFactory SocialConsensusHelper::m_articleFactory;
AccountSettingConsensusFactory SocialConsensusHelper::m_accountSettingFactory;
UserConsensusFactory SocialConsensusHelper::m_userFactory;
AccountDeleteConsensusFactory SocialConsensusHelper::m_accountDeleteFactory;
AccountUserConsensusFactory SocialConsensusHelper::m_accountUserFactory;
CommentConsensusFactory SocialConsensusHelper::m_commentFactory;
CommentEditConsensusFactory SocialConsensusHelper::m_commentEditFactory;
CommentDeleteConsensusFactory SocialConsensusHelper::m_commentDeleteFactory;
Expand Down Expand Up @@ -161,8 +162,10 @@ namespace PocketConsensus
{
case ACCOUNT_SETTING:
return m_accountSettingFactory.Instance(height)->Check(tx, static_pointer_cast<AccountSetting>(ptx));
case ACCOUNT_DELETE:
return m_accountDeleteFactory.Instance(height)->Check(tx, static_pointer_cast<AccountDelete>(ptx));
case ACCOUNT_USER:
return m_userFactory.Instance(height)->Check(tx, static_pointer_cast<User>(ptx));
return m_accountUserFactory.Instance(height)->Check(tx, static_pointer_cast<User>(ptx));
case CONTENT_POST:
return m_postFactory.Instance(height)->Check(tx, static_pointer_cast<Post>(ptx));
case CONTENT_VIDEO:
Expand Down Expand Up @@ -216,8 +219,10 @@ namespace PocketConsensus
{
case ACCOUNT_SETTING:
return m_accountSettingFactory.Instance(height)->Validate(tx, static_pointer_cast<AccountSetting>(ptx), pBlock);
case ACCOUNT_DELETE:
return m_accountDeleteFactory.Instance(height)->Validate(tx, static_pointer_cast<AccountDelete>(ptx), pBlock);
case ACCOUNT_USER:
return m_userFactory.Instance(height)->Validate(tx, static_pointer_cast<User>(ptx), pBlock);
return m_accountUserFactory.Instance(height)->Validate(tx, static_pointer_cast<User>(ptx), pBlock);
case CONTENT_POST:
return m_postFactory.Instance(height)->Validate(tx, static_pointer_cast<Post>(ptx), pBlock);
case CONTENT_VIDEO:
Expand Down
Loading