diff --git a/database/update-2024-01-24.sql b/database/update-2024-01-24.sql new file mode 100644 index 0000000..e005379 --- /dev/null +++ b/database/update-2024-01-24.sql @@ -0,0 +1,21 @@ +update categories set name ='Nature' where id = 1; +update categories set name ='Lifestyle and wellness' where id = 2; +update categories set name ='People and emotions' where id = 3; +update categories set name ='Food and drinks' where id = 4; +update categories set name ='Sports' where id = 5; +update categories set name ='Education and learning' where id = 6; +update categories set name ='Industry and technology' where id = 7; +update categories set name ='Business and marketing' where id = 8; +update categories set name ='AIGC' where id = 9; + + +insert into categories(id, name) values (10, 'Travel and places'); +insert into categories(id, name) values (11, 'Animals'); +insert into categories(id, name) values (12, 'Plants'); +insert into categories(id, name) values (13, 'Buildings'); +insert into categories(id, name) values (14, 'Indoor'); +insert into categories(id, name) values (15, 'Outdoor'); +insert into categories(id, name) values (16, 'Streets'); +insert into categories(id, name) values (17, 'Events'); +insert into categories(id, name) values (18, 'Feelings'); +insert into categories(id, name) values (19, 'Things'); \ No newline at end of file diff --git a/monitor/bsc_block_processor.go b/monitor/bsc_block_processor.go index c123b43..02a3fb7 100644 --- a/monitor/bsc_block_processor.go +++ b/monitor/bsc_block_processor.go @@ -59,7 +59,7 @@ func (p *BscBlockProcessor) GetDatabaseBlockHeight() (uint64, error) { } func (p *BscBlockProcessor) GetBlockchainBlockHeight() (uint64, error) { - return p.client.GetLatestFinalizedBlockHeightWithRetry() + return p.client.GetLatestBlockHeightWithRetry() } func (p *BscBlockProcessor) Process(blockHeight uint64) error {