Skip to content

Commit

Permalink
feat: move to opbnb
Browse files Browse the repository at this point in the history
  • Loading branch information
forcodedancing committed Jan 25, 2024
1 parent 3e59faa commit 08e6d58
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions database/update-2024-01-24.sql
Original file line number Diff line number Diff line change
@@ -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');
2 changes: 1 addition & 1 deletion monitor/bsc_block_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 08e6d58

Please sign in to comment.