Skip to content

Commit

Permalink
Merge PR: wtx whitelist (#1532)
Browse files Browse the repository at this point in the history
* add log

* add whitelist of testnet

Co-authored-by: Zhong Qiu <[email protected]>
  • Loading branch information
yann-sjtu and zhongqiuwood authored Feb 7, 2022
1 parent 227b488 commit 5dc17aa
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
43 changes: 43 additions & 0 deletions app/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,49 @@ const (

var (
testnetNodeIdWhitelist = []string{
// RPC nodes for users
"3a339568305c5aff58a1f134437b608490e2ec6d",
"b9e7bf85886f1d11ee5079726a268401bf7b6254",
"54c5ffc54e10a311660d16a96d54ddc59edb5555",
"d77e385de87acdd042973c5d3029b02db8d767ff",
"5cfdc51d1502fbe44d1b2a7f1f37e1016ad5ee97",
"704be3bf19866f2aa5c77b09f003e2b69c552927",
"1767342f12cb0e1e393a42c56d63d7486b2c54cd",
"d33084a8c7bab8c9b6f286378b5e3ac197caa41a",
"6a96b0a094ec9aaff2b7148b0c5811618b41c101",
// RPC nodes for developers
"3a35faa50649164d59f07f31d78946ca07464e9c",
"cee36e7fbc99eaa02bd9af692dae367a867c43f4",
"fbcae686695cd17ee8319bbd6b9b0aaf0f10d8c4",
"2c34f93a8665d694e56319ccdc6738b203c33848",
"f689ab031c0758367af229aa8df65ac69762327d",
"58c495e040a1576ebc1f386a7dc04c4e60ee63d7",
"a2f685db92a88c18780d8d9cb1162ab61517ae64",
"8d4b0539b95b60e1691eac77be4aa7295645d9d9",
"6f328902a0bf5e7b922d6a5980dd6888097db984",
"12503ae035dd7ff04e19b0ca2c9c8b54a0a56b22",
// validator nodes
"c39ca38c650b920f9b6c5a9aed7ff904124ec3ad",
"d937e21fd489809add23dc3e55ed78d947217aa8",
"a3eb3c129e49137d5e1665bbf87b6f2be70a0b85",
"b171a9ef83b95c28182bc7aa7ea8639d04e572e7",
"3a700a3849c401396b1c51eb65b1cfc1a8c4394b",
"0208e66d4ca746ec535a0bf05409dc87df408b15",
"ed1819fa1eae52ddec4c0f8cddd80b9cb7c68a22",
"0b3ab9597a66f2f94c8efa4ccb6ed2a1f44d4184",
"67b29551c7c3839ad6c93379991344266aec3829",
"cd07b20b596aac923a1d5bb022581e279755aff1",
"6ce06a89a968a4204d9dcb470f2275767c8dfa68",
"6dd38d96df3ccbca95769ee15bdfdd952ad007c5",
"fcc95bfee6ea74bdf385be3a29072329603676e5",
"7b5b3041d2b3546a236b6df7ff7e06a19a5cae46",
"c098585e299ff7afe6f354c4431550d6919bdd0d",
"5b44fb4af4cfb72286162cb49a3bc04cb8187775",
"358e3399b68fb67787f1386c685db2e75352d9eb",
"96d9cb96041c053e63ff7d0c7d81dfab706136e4",
"0de948586fb30293d1dd14a99ebc3f719deb7c6f",
"284e87518752c8f655fe217113fa86ba7d6ca72f",
"7f2b8a6b9b8b12247e6992aeb32d69e169c2f5ac",
}

mainnetNodeIdWhitelist = []string{
Expand Down
2 changes: 2 additions & 0 deletions libs/tendermint/mempool/clist_mempool.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,9 @@ func (mem *CListMempool) CheckTx(tx types.Tx, cb func(*abci.Response), txInfo Tx
return err
}

begin := time.Now()
reqRes := mem.proxyAppConn.CheckTxAsync(abci.RequestCheckTx{Tx: tx, Type: txInfo.checkType, From: txInfo.wtx.GetFrom()})
mem.logger.Info("mempool.CheckTxAsync", "time cost", time.Since(begin))
if cfg.DynamicConfig.GetMaxGasUsedPerBlock() > -1 {
if r, ok := reqRes.Response.Value.(*abci.Response_CheckTx); ok {
mem.logger.Info(fmt.Sprintf("mempool.SimulateTx: txhash<%s>, gasLimit<%d>, gasUsed<%d>",
Expand Down

0 comments on commit 5dc17aa

Please sign in to comment.