Commit Graph

118 Commits

Author SHA1 Message Date
Groovie | Mango fae4cecc0e
Improvement/saving blocks use lookup tables (#318)
block store basic implementation
2024-02-05 20:20:15 +01:00
galactus 4d5a21530c
Adding CLI argument to set the max number of connections with the leader (#317)
* Adding CLI argument to set the max number of connections with the leader

* Fixing env variable name
2024-02-05 14:06:24 +01:00
galactus 9e031902e3
Implementing missing endpoints (#316)
* Implementing missing endpoints

* Adding slot subscription, and implementing prio fee method

* Changes after groovie and anikets review
2024-02-02 16:42:42 +01:00
galactus 27b1e6ad16
Calculating prio fees by account (#310)
* Calculating readable and writable accounts for transaction and saving in transaction info, declaration of primary strutures

Implementing calculation of prioritization by accounts

Optimize calculation of prioritization fees stats (#301)

* Optimize calculation of prioritization fees stats

* comment on arrays in response

* Fix the calculation of supp

* Fix fmt

---------

Co-authored-by: GroovieGermanikus <groovie@mango.markets>

Implementing calculation of prioritization by accounts

Adding endpoint methods for prioritization fees by account

* Implement account stats subscription

* Fixing the serialization and deserialization of last

* Changes after groovies review
2024-02-01 18:49:51 +01:00
Groovie | Mango 7171b524f0
Feature/block priofees (#274)
* boilerplate

* add dummy endpoint

* simple logic with highes block

* endpoint works

* remove cu calculus

* log get_latest_block startup timing

* websocket subscription basics

* WIP

* propagate fees via channel

* cleanup

* use broadcast sender

* proper handling of broadcast channel issues

* rename stuff

* move to dedicated crate

* cleanup deps

* move data definition

* hide private types

* percentile math

* code format

* integrated stats by cu

* add cu stats

* restart inline asserts

* warn about DashMap access

* switch to BTreeMap

* remove vote transactions from calculus

* return vec

* array

* flat format

* reformat

* split arrays

* rename keys

* enable experimental tag

* code format

* more logging

* reset log level

* rename websocket method to blockPrioritizationFeesSubscribe

* HACK: use processed blocks

* add is_vote_transaction

* do not fail if fees goes down

* udp message size example

* imrpove 100 handling

* simplify inital sort

* Revert "HACK: use processed blocks"

This reverts commit ff17d9475c.

* add percentile test case

* add per block cu_consumed+tx_count(nonvote)

* fix supid cleanup bug

* add TxAggregateStats

* add by_cu test

* add alternative cu percentlie impl

* cleanup cu tests

* add check for step

* saturating_sub

* remove useless file

* add is_vote to history crate

* fix fmt+clippy (nightly)

* clippy

* clippy

* clippy

* clippy
2024-01-25 10:29:14 +01:00
galactus de26490e9c
Squash and merging all the commits from groovies branch groovie/post… (#300)
* Squash and merging all the commits from  groovies branch groovie/postgres_saving_blocksII

* Ingore tests which require postgres
2024-01-22 15:22:11 +01:00
galactus 4d4019264e
Fixing message too long and overflow panics (#288) 2024-01-18 15:11:29 +01:00
galactus 1209a8ae4d
Increase finish quic timeout (#280) 2024-01-17 13:10:11 +01:00
galactus 4ed7eead8b
Adding prometheus metrics to follow quic states (#277) 2024-01-16 11:30:40 +01:00
godmodegalactus 2498950583
Reconnecing to block stream and slot stream incase of error 2024-01-12 14:33:00 +01:00
galactus d91e2e9316
disable geyser stakes and votes for refactoring (#268) 2024-01-11 14:37:06 +01:00
musitdev 21d0cee332 set initial rpc schedule parameters 2024-01-08 13:19:23 +01:00
musitdev 032232f6f3 add rpc leader shedule loading if the bootstrap file is not present 2024-01-05 15:58:25 +01:00
musitdev 402ebd69b1 correct from PR remarks 2024-01-04 13:36:13 +01:00
GroovieGermanikus 772e2c9909
reset values for leader schedule cache 2024-01-04 11:12:45 +01:00
musitdev 77853a34ca rm trace comment 2024-01-04 09:56:55 +01:00
musitdev 2e7d86b896 rm trace comment 2024-01-04 09:25:46 +01:00
musitdev dbc152bb64 rebase from master 2024-01-03 16:50:16 +01:00
musitdev 5a24c2bb4d set stake_vote optional and integrate leader schedule and vote in send Tx 2024-01-03 10:25:45 +01:00
musitdev faa5d1a12c rebase from main 2024-01-03 10:23:17 +01:00
musitdev 16e8c53fad change some ogs to trace and set default gprc add to localhost 2024-01-03 10:22:43 +01:00
musitdev eadff4fce3 set inital schedule parameters 2024-01-03 10:21:07 +01:00
musitdev 93ab67db18 test leader and vote RPC calls 2024-01-03 10:21:06 +01:00
musitdev 5c64a151c2 test getvoteaccount. Correct some bugs 2024-01-03 10:20:18 +01:00
musitdev 69754a019a start get_leader_slot, update for get_vote_account 2024-01-03 10:20:18 +01:00
musitdev b3317667a6 first impl for RPC get_vote_accounts 2024-01-03 10:20:18 +01:00
musitdev 3e4c81c567 Stake and vote management. Integration of the main loop in current architecture 2024-01-03 10:20:14 +01:00
Aniket Prajapati 68ee942b4b
removed DEFAULT_LITE_RPC_HTTP_ADDR; config to Config::default_lite_rpc_http_addr (#254)
* -D clippy

* scripts

* fmt

* commented out

* diff clippy and build

* fix

* push -> main
2024-01-02 20:51:39 +05:30
Groovie | Mango 5cfb6de72a
grpc multiplexing integrate (#255)
allow multiple GRPC sources
2023-12-22 14:42:20 +01:00
Aniket Prajapati 8d5e598d51
identity (#249) 2023-11-27 21:01:59 +05:30
Aniket Prajapati 3eecb89b81
simple config, env and cli (#247)
* simple config, env and cli

* fix comp

* init env first

* added env override

* postgres config

* fmt

* updated env in readme

* examples

* a
2023-11-27 14:24:59 +05:30
Godmode Galactus e6d2ab897e
Update grpc version to 0.11.0 so that we can use the latest triton service 2023-11-14 10:42:58 +01:00
Arrowana 15ffb44f6e allow x-token 2023-11-07 21:04:17 +11:00
aniketfuryrocks b7c9c7e55f fmt 2023-10-30 10:38:16 +05:30
aniketfuryrocks d68ba7e3f0 implement rpc methods with a todo!() clause 2023-10-30 10:38:16 +05:30
Godmode Galactus e65ef4558b
restoring block polling with semaphore, some more changes related to processed slots and tpu manager 2023-10-25 20:54:19 +02:00
godmodegalactus fe3509c7ee
after musitdev review 2023-10-06 10:44:39 +02:00
Godmode Galactus 14f26534a7
Saving block and transactions in postgres table 2023-10-05 14:52:55 +02:00
galactus f9dfcf4891
Merge pull request #223 from blockworks-foundation/epoch_integration
Epoch integration
2023-10-04 20:29:57 +02:00
galactus 72cea3a32e
Merge pull request #224 from blockworks-foundation/save_transaction_message_in_store
Removing postgres_session and moving it to history, start to implemen…
2023-10-04 20:29:38 +02:00
godmodegalactus 53fc6b482a
Update counters only if transactions are sent by literpc 2023-10-04 17:29:12 +02:00
musitdev 178da3cc00 use commitment config for RPC call 2023-10-04 17:11:08 +02:00
godmodegalactus fc1810cc89
Removing postgres_session and moving it to history, start to implement saving blocks 2023-10-04 15:25:06 +02:00
musitdev c6aba8f396 Epoch integration 2023-10-04 11:28:18 +02:00
godmodegalactus 480631de72
Save all transactions in the cache, save transaction messages too, Increase transaction store size 2023-10-03 11:36:38 +02:00
godmodegalactus 7ef29e1af6
implementing history, block storage method
changes after groovies review
2023-09-21 15:39:25 +02:00
godmodegalactus 255b9de7f5
fixing tests, cargo fmt 2023-09-20 17:01:23 +02:00
godmodegalactus 7f3d3303b7
checking for transaction confirmation and blockheight before sending the transaction 2023-09-20 16:57:01 +02:00
Godmode Galactus 7ce00a2642
changes after groovies review 2023-09-19 16:49:46 +02:00
Godmode Galactus dcc640f80a
using semaphore in tpu connection manager and removing unwanted code 2023-09-15 11:06:45 +02:00