Skip to content

Commit 3b46195

Browse files
authored
Merge pull request #2929 from nervosnetwork/testnet
Deploy to mainnet
2 parents 391a115 + 5bbdc46 commit 3b46195

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

app/workers/analyze_contract_from_cell_dependency_worker.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def perform
3838
def load_unanalyzed_dependencies
3939
CellDependency.where(contract_analyzed: false).
4040
where.not(block_number: nil).
41-
limit(200).
41+
limit(500).
4242
group_by(&:ckb_transaction_id)
4343
end
4444

app/workers/clean_rejected_tx_worker.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# 1.Check every pending transaction in the pool if rejected
2-
# 2.When a pending tx import to db and the same tx was import by node processor,it will exist two same tx with different status
1+
# 1. Check every pending transaction in the pool if rejected
2+
# 2. When a pending tx is imported to db and the same tx was imported by node processor, it will exist two same tx with different status
33
class CleanRejectedTxWorker
44
include Sidekiq::Worker
55
sidekiq_options retry: 0

app/workers/pool_transaction_check_worker.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# 1.Check every pending transaction in the pool if rejected
2-
# 2.When a pending tx import to db and the same tx was import by node processor,it will exist two same tx with different status
1+
# 1. Check every pending transaction in the pool if rejected
2+
# 2. When a pending tx is imported to db and the same tx was imported by node processor, it will exist two same tx with different status
33
class PoolTransactionCheckWorker
44
include Sidekiq::Worker
55
sidekiq_options retry: 0

config/initializers/new_framework_defaults_7_0.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
# Rails.application.config.action_view.apply_stylesheet_media_default = false
1818

1919
# Change the digest class for the key generators to `OpenSSL::Digest::SHA256`.
20-
# Changing this default means invalidate all encrypted messages generated by
21-
# your application and, all the encrypted cookies. Only change this after you
20+
# Changing this default means invalidating all encrypted messages generated by
21+
# your application and all the encrypted cookies. Only change this after you
2222
# rotated all the messages using the key rotator.
2323
#
2424
# See upgrading guide for more information on how to build a rotator.
@@ -42,7 +42,7 @@
4242

4343
# Define the isolation level of most of Rails internal state.
4444
# If you use a fiber based server or job processor, you should set it to `:fiber`.
45-
# Otherwise the default of `:thread` if preferable.
45+
# Otherwise the default of `:thread` is preferable.
4646
# Rails.application.config.active_support.isolation_level = :thread
4747

4848
# Set both the `:open_timeout` and `:read_timeout` values for `:smtp` delivery method.

lib/ckb_block_node_processor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
remain = 0
1717
duration = 0
1818
loop do
19-
ApplicationRecord.with_advisory_lock("CkbSyncer") do # use advisory lock to prevent two node processor
19+
ApplicationRecord.with_advisory_lock("CkbSyncer") do # use advisory lock to prevent two node processors
2020
start = Time.now.to_f
2121
block = CkbSync::NewNodeDataProcessor.new.call
2222
if block

lib/scheduler.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def call_worker(clz)
136136
call_worker GenerateUdtHolderAllocationWorker
137137
end
138138

139-
s.every "1h", overlap: false do
139+
s.every "10m", overlap: false do
140140
call_worker AnalyzeContractFromCellDependencyWorker
141141
end
142142

test/workers/charts/daily_statistic_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class DailyStatisticTest < ActiveSupport::TestCase
5555
Charts::DailyStatistic.new.perform(1.day.ago)
5656
assert_equal 2, ::DailyStatistic.count
5757

58-
# it's very wired that this unit test would fail in test environment in github.
58+
# it's very weird that this unit test would fail in test environment in github.
5959
# assert_equal Time.at(::DailyStatistic.last.created_at_unixtimestamp).strftime("%Y-%m-%d"), 1.day.ago.strftime("%Y-%m-%d")
6060
assert_equal block.timestamp, ::DailyStatistic.last.block_timestamp
6161
end

0 commit comments

Comments
 (0)