b8718a8b00
fix: prevent panic in FullNodeProxy
with empty node list ( #12948 )
...
fix: prevent panic in FullNodeProxy with empty node list
fix: prevent panic in FullNodeProxy with empty node list
2025-03-13 14:38:05 +01:00
265710874b
fix(api): make stick sessions actually work and make them non-racy ( #12665 )
...
* fix(api): make stick sessions actually work and make them non-racy
We apparently have a way to specify that all "related" requests should
go to the same node. However:
1. It didn't work at all. All future requests would go to the first successful
node from the first request. Because that's how stack variables work.
2. It was racy if the context was re-used concurrently. But only the
first time, see point 1.
* test(api): test the API merge proxy
1. Test whether or not it works.
2. Test stickiness.
* fix(api): update OnSingleNode documentation
2024-11-01 04:07:57 +00:00
9e6e7814ab
chore: lint: enable function godoc linting
2024-07-19 11:10:11 +10:00
43b7a78a58
chore: src: fix godoc comments ( #12257 )
2024-07-18 04:49:37 +00:00
8cd233b479
chore: api: the Net API/CLI now remains only on daemon
...
The only part of this repository that does lp2p is now lotus-daemon
Remove the CommonNet type, used exclusively bu the CLI stack
Adjust the rest of struct-memebership to match what went where
End result best seen in diff of `documentation/en/api-v0-methods-miner.md`
2024-06-17 18:21:34 +10:00
469960ce0e
cleanup: Lotus client: remove markets and deal-making from Lotus Client ( #11999 )
...
* remove client CLI
* remove markets CLI from miner
* remove markets from all CLI
* remove client API
* update go mod
* changes as per review
2024-06-05 09:56:25 +04:00
81ba6ab6f0
feat: Curio - Easy Migration ( #11617 )
...
* feat: lp mig - first few steps
* lp mig: default tasks
* code comments
* docs
* lp-mig-progress
* shared
* comments and todos
* fix: curio: rename lotus-provider to curio (#11645 )
* rename provider to curio
* install gotext
* fix lint errors, mod tidy
* fix typo
* fix API_INFO and add gotext to circleCI
* add back gotext
* add gotext after remerge
* lp: channels doc
* finish easy-migration TODOs
* out generate
* merging and more renames
* avoid make-all
* minor doc stuff
* cu: make gen
* make gen fix
* make gen
* tryfix
* go mod tidy
* minor ez migration fixes
* ez setup - ui cleanups
* better error message
* guided setup colors
* better path to saveconfigtolayer
* loadconfigwithupgrades fix
* readMiner oops
* guided - homedir
* err if miner is running
* prompt error should exit
* process already running, miner_id sectors in migration
* dont prompt for language a second time
* check miner stopped
* unlock repo
* render and sql oops
* curio easyMig - some fixes
* easyMigration runs successfully
* lint
* review fixes
* fix backup path
* fixes1
* fixes2
* fixes 3
---------
Co-authored-by: LexLuthr <88259624+LexLuthr@users.noreply.github.com>
Co-authored-by: LexLuthr <lexluthr@protocol.ai>
2024-03-15 16:38:13 -05:00
464e492fd2
srv cleanups
2023-12-30 09:37:04 -06:00
56498f1fb4
fix circleci and fiximports
2023-11-13 18:09:11 -06:00
3c4e22ff0c
gen fix
2023-11-13 17:59:34 -06:00
c8c673435e
sql startup fix, better errors
2023-11-13 16:23:29 -06:00
5b5ae80e30
renamed api config
2023-10-19 18:19:42 -05:00
6695a2d936
why does proxygen crash
2023-10-18 16:47:00 -05:00
e548b46dbf
lotus-provider-in-progress
2023-10-16 10:28:58 -05:00
965b1cf03c
itests: Fix TestEthSubscribeLogs
2023-01-31 10:28:12 +01:00
1286d76988
gateway: eth_subscribe support
2023-01-31 10:28:12 +01:00
e6e50ee9f7
more linter
2022-11-25 17:05:41 -05:00
9f85d3dca7
Address simple linter issues
2022-11-24 16:32:27 +00:00
800d9de4d5
Address comments
2022-11-14 15:46:58 -05:00
ad8b959880
Address more comments and add test for gorpc auth
2022-10-18 15:53:42 -04:00
674427a8b2
fix lint and make gen
2022-10-17 22:44:00 -04:00
900525f8c2
some cleanup
2022-10-17 16:13:30 -04:00
139f8773de
fix some bugs and address some comments
2022-10-16 22:52:22 -04:00
98481821d8
solution for mining loop hitting the same node
2022-10-05 16:52:49 +00:00
dde204fb6a
Change Mpool push API to have an option to publish
2022-10-04 16:49:09 +00:00
f89a682d98
Add Mpool ref to raft state and rearrange some APIs
2022-09-29 10:56:57 +00:00
570f61438a
Retries within proxy working
2022-09-28 15:07:05 +00:00
99e7c322eb
More wip
2022-09-27 16:08:04 +00:00
62e352ef88
move APIInfoEnvVars, RepoFlags, APIFlags under RepoType
2022-03-03 16:45:11 +01:00
acbfc879aa
config: extract DealmakingConfig and Sealing config from Lotus for Boost ( #8172 )
...
* refactor sealingCfg and dealmakingCfg to be able to abstract Config
* fix error messages
2022-03-03 15:37:23 +01:00
f1f878a000
unexport repo types; use a global var for every repo type
2022-03-03 15:37:23 +01:00
e3edab66e3
refactor RepoType
2022-03-03 15:37:23 +01:00
ae49729afb
test: chain sethead cli command
...
Also moved the mock definition to a separate file (mocks_test.go)
because it's gonna be used in other test files, and it didn't make sense
for it to stay inside chain_test.go.
2022-02-09 20:46:51 +01:00
811bc62d65
test: cli test setup & test chain head
...
CLI actions lack unit tests. I decided to use the approach similar to
what I found in `send_test.go` using gomock, but I don't rely on custom
"service" implementations but mock the whole FullNode API.
This first commit validates the test setup by testing the simplest method
of the chain category, e.g. `chain head`.
This requires a minor refactor of the CLI action code:
- The constructor (`GetFullNodeAPI`) checks if there's an injected mock
API in the app Metadata and uses that in unit tests.
- Actions shouldn't use raw `fmt.*` but instead write to the `app.Writer`
so the CLI output is testable
2022-02-08 17:15:45 +01:00
adcb8f3b15
improve get api error messages
2021-08-16 14:33:08 +03:00
73a644f320
Review response
2021-08-12 13:09:43 -04:00
3bb5d4eb8f
Strict major minor version checking on v0 and v1 apis
2021-08-11 16:40:14 -04:00
fa7e52dbda
add explicit error msg if repo dir does not exist
2021-08-01 00:22:55 -04:00
8433aae1af
use fallback api infos last; init service with markets-path.
2021-07-29 16:10:04 +01:00
b17fcfc4d1
bugfix.
2021-07-29 14:36:04 +01:00
3144da86f3
add RepoType#String; adjust repo parsing logic.
2021-07-29 13:49:51 +01:00
90427bc3af
fix docs, add flag.
2021-07-29 13:39:03 +01:00
8fae68a5ae
fix tests.
2021-07-29 13:21:55 +01:00
3b2c3a3f6b
polish.
2021-07-29 12:56:08 +01:00
22c0884f5f
target markets API for markets commands.
2021-07-29 12:37:29 +01:00
4e19d8d562
support MARKETS_API_INFO env var; support markets-repo, markets-api-url flags.
2021-07-29 10:55:37 +01:00
b04fb75a92
rename flag to very verbose.
2021-07-27 20:49:30 +01:00
48cddd3644
add a super verbose -vv flag to lotus and lotus-miner.
2021-07-27 14:25:28 +01:00
49e26cce7d
api: Separate the Net interface from Common
2021-07-15 11:41:30 +02:00
508e2d5c49
gateway: Fix api getter
2021-04-20 18:42:12 +02:00