Commit Graph

219 Commits

Author SHA1 Message Date
Derrick Hammer af4e6155bc
*Make dht cache optional, but enabled by default 2022-12-19 15:28:22 -05:00
Derrick Hammer 212edf184d
*More log refactoring
ci/woodpecker/push/woodpecker Pipeline failed Details
2022-12-19 14:17:07 -05:00
Derrick Hammer 7b9c667749
*Routes must be defined before listen 2022-12-19 14:03:22 -05:00
Derrick Hammer 9b9ff2118c
*export ssl manager
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-12-19 12:17:33 -05:00
Derrick Hammer b57644836f
*Path bug fix 2022-12-19 12:14:24 -05:00
Derrick Hammer c207452c65
*Update API interface to add the identity and ssl manager
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-12-19 12:08:33 -05:00
Derrick Hammer b7cd9ac5e2
*More log fixes
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-12-19 11:47:09 -05:00
Derrick Hammer a6eef21da0
*Make log the default export
ci/woodpecker/push/woodpecker Pipeline failed Details
2022-12-19 11:44:11 -05:00
Derrick Hammer 88a827276e
*Update references of log object
ci/woodpecker/push/woodpecker Pipeline failed Details
2022-12-19 11:42:51 -05:00
Derrick Hammer 05223c84b8
*Update config save call 2022-12-19 11:42:32 -05:00
Derrick Hammer ccd2b4fd78
*Update use of config api
ci/woodpecker/push/woodpecker Pipeline failed Details
2022-12-19 11:37:49 -05:00
Derrick Hammer f164f7a6d3
*Pass child pino logger to dht-cache 2022-12-19 08:51:35 -05:00
Derrick Hammer 3fffc08d54
*switch to pino logger 2022-12-19 08:19:43 -05:00
Derrick Hammer f597afac6a
*Implement new SSl support with SSLManager class
*Rewrite relay servers to use fastify
*Remove status code server, it will be a plugin
2022-12-19 08:09:25 -05:00
Derrick Hammer ef03883605
*switch app to using fastify 2022-12-19 07:13:11 -05:00
Derrick Hammer 84b69e09af
*Update return type on getKeyPair 2022-12-19 07:12:10 -05:00
Derrick Hammer ce5d66095f
*Remove ssl support for now
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-12-18 15:11:18 -05:00
Derrick Hammer 56673a6bc1
*remove log debugging code 2022-12-18 15:08:04 -05:00
Derrick Hammer 457398b291
*Prune out old or unneeded code, some maybe be refactored back in as plugins or in a different form
ci/woodpecker/push/woodpecker Pipeline failed Details
2022-12-18 15:05:40 -05:00
Derrick Hammer 6fa5ccd49a
*Add swarm to plugin api 2022-12-18 15:01:27 -05:00
Derrick Hammer 480bfdd0d0
*Remove dns module for now, will refactor this back later
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-12-18 14:44:39 -05:00
Derrick Hammer b50b8e8ced
*Make bip44 path a constant 2022-12-18 14:00:22 -05:00
Derrick Hammer 37b0e824c4
*Update bip44 path 2022-12-18 13:58:23 -05:00
Derrick Hammer a85b20769a
*Fix valid check 2022-12-18 13:46:00 -05:00
Derrick Hammer 5fba29b3ee
*Update imports for getKeyPair and getSeed 2022-12-18 13:45:12 -05:00
Derrick Hammer 7fad293bdc
*validateMnemonic returns a boolean 2022-12-18 13:42:41 -05:00
Derrick Hammer db4b61bdd9
*Switch seed to bip39, and use bip32/bip44/slip10 2022-12-18 13:32:59 -05:00
Derrick Hammer 2db95ff746
*Add plugin emit for plugins loaded 2022-12-18 11:42:50 -05:00
Derrick Hammer 2b5d3ef646
*Heavily refactor plugin api, remove most methods for now
*Introduce event emitter2 which will be used as part of api
*Use a proxy class to create a custom PluginAPI.registerMethod which will pass the lexical scoped plugin name
2022-12-18 11:09:29 -05:00
Derrick Hammer 0e39f3d658
*Missing returning rpc instance 2022-12-18 07:17:54 -05:00
Derrick Hammer 9d6a198bca
*Extract RPC setup to a utility function and ensure new streams in getRpcByPeer use it 2022-12-18 06:58:45 -05:00
Derrick Hammer 7fa2ec9f8e
*Release lock before throwing error 2022-12-17 15:58:46 -05:00
Derrick Hammer de38a16ac1
*Bug fix 2022-12-16 08:22:38 -05:00
Derrick Hammer 7c873db91b
*Add debug code to track log messages and store then in memory to be accessed over rpc 2022-12-16 08:05:16 -05:00
Derrick Hammer 58ff8f2f92
*Add methods get_bootstrap_info and get_connected_peers to debug
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-12-15 13:44:50 -05:00
Derrick Hammer d28868508b
Revert "*Need to use dynamic import"
This reverts commit 6413d97c61.
2022-12-15 06:23:28 -05:00
Derrick Hammer 485fa98f0e
Revert "*Need to return dynamic function and execute it"
This reverts commit 55fa792bc9.
2022-12-15 06:23:28 -05:00
Derrick Hammer 55fa792bc9
*Need to return dynamic function and execute it 2022-12-15 06:04:24 -05:00
Derrick Hammer 6413d97c61
*Need to use dynamic import
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-12-15 05:42:22 -05:00
Derrick Hammer 884ba62bde
*Add timeout support to broadcast request with a default timeout of 5 seconds.
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-12-15 04:58:54 -05:00
Derrick Hammer 724a0f0135
*switch plugin loading to use require and not import
ci/woodpecker/manual/woodpecker Pipeline failed Details
2022-12-13 07:23:18 -05:00
Derrick Hammer d54fe4666f
*Types changed with chalk
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-12-07 02:16:37 -05:00
Derrick Hammer 4742c6844c
*Add log level prefix plugin with chalk formatting
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-12-07 01:57:21 -05:00
Derrick Hammer 80a3354866
*ensure loglevel is configurable 2022-12-07 00:46:16 -05:00
Derrick Hammer 7bd0a72113
*Move relay identity log to swarm
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-12-06 17:03:30 -05:00
Derrick Hammer c25e8b4aff
*generateSeedPhraseDeterministic returns an array, need only the 1st element
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-12-06 16:55:58 -05:00
Derrick Hammer ededa55b57
*Dont require a domain
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-12-06 16:22:28 -05:00
Derrick Hammer eedd6e7da5
*Remove pocket config check
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-12-06 07:22:03 -05:00
Derrick Hammer 8ea5a38b83
*Remove self from peers list 2022-12-05 15:38:58 -05:00
Derrick Hammer bbc9020f66
*Update get_direct_peers to filter against dhtCache online list 2022-12-05 15:22:18 -05:00