Commit graph

  • d2193e980a
    blockchain.transaction.broadcast implementation (#80) master Jonathan Moody 2022-12-16 13:54:19 -06:00
  • 711c4b4b7b
    WIP: Json rpc federation, search/getclaimbyid, and shutdown (#76) Jeffrey Picard 2022-12-07 11:01:36 -05:00
  • 317cdf7129
    WIP: blockchain.transaction.yyy JSON RPC implementations (#78) Jonathan Moody 2022-12-06 16:14:28 -05:00
  • e070e8a51e
    JSON RPC compatibility workarounds to support lbry-sdk (#75) Jonathan Moody 2022-10-29 11:42:24 -04:00
  • cd7f20a461
    Server endpoints goroutine refactor (#69) Jeffrey Picard 2022-10-25 08:48:13 +03:00
  • 5f2d330f76 more endpoints server-xxx-endpoints Jeffrey Picard 2022-10-11 22:30:54 +00:00
  • 698bc22360 server.banner Jeffrey Picard 2022-10-11 14:29:51 +00:00
  • 66961c1e3d server.xxx endpoints Jeffrey Picard 2022-10-11 10:54:46 +00:00
  • b85556499f v0.2022.10.05.1 v0.2022.10.05.1 Jeffrey Picard 2022-10-05 06:25:42 +03:00
  • 8eb7841600
    little fixes for debugging and shutdown (#67) Jeffrey Picard 2022-10-05 06:24:42 +03:00
  • 6d4b9b5e37 v0.2022.10.04.1 v0.2022.10.04.1 Jeffrey Picard 2022-10-04 20:52:47 +03:00
  • 537b8c7ddd
    integration testing scripts (#64) Jeffrey Picard 2022-10-04 20:25:44 +03:00
  • 8fb3db8136
    Add subscribe/unsubscribe RPCs. Add session, sessionManager, and serve JSON RPC (without HTTP). (#66) Jonathan Moody 2022-10-04 10:05:06 -04:00
  • 5f068341e3 Use time.Ticker object to drive management activity. blockchain_rpc2 Jonathan Moody 2022-10-03 14:37:00 -04:00
  • 1eb645a0b9 HashXStatus, HashXMempoolStatus not populated by default. Fix GetStatus(). Jonathan Moody 2022-09-29 15:13:30 -05:00
  • a91e9f82ff Add tests for headers, headers.subscribe, address.subscribe. Jonathan Moody 2022-09-29 12:12:38 -05:00
  • 3ddcbbb55d Changes to make session.go testable. Conn created with Pipe() used in testing has no unique Addr. Jonathan Moody 2022-09-29 12:10:06 -05:00
  • 813fd4590a Add --max-sessions, --session-timeout args. Enforce max sessions. Jonathan Moody 2022-09-28 14:49:32 -05:00
  • e56edf0c9a Handle failures with goto instead of break. Update error logging. Jonathan Moody 2022-09-28 11:26:30 -05:00
  • c42a4689cd Only assign default port (50001) if neither --json-rpc-port nor --json-rpc-http-port are specified. Jonathan Moody 2022-09-27 20:00:42 -05:00
  • 1d227dbca8 Support both pure JSON and JSON-over-HTTP services. Forward NotifierChan messages to sessionManager. Jonathan Moody 2022-09-27 18:46:11 -05:00
  • 7f47de2949 Add core session/subscription logic (session.go). Implement subsribe/unsubscribe handlers. Jonathan Moody 2022-09-27 18:29:17 -05:00
  • b9cb9d8c5a Make the service objects independent, so we don't have inheritance. Jonathan Moody 2022-09-27 18:08:16 -05:00
  • 8c66d67a52 Implement GetStatus() to pull data from HashXStatus table. Jonathan Moody 2022-09-27 18:02:08 -05:00
  • 603a18f590 Drop http.Request arg from handlers, and use RegisterTCPService(). Jonathan Moody 2022-09-27 17:47:27 -05:00
  • d03c992a25 Rename BlockchainService -> BlockchainBlockService. Jonathan Moody 2022-09-27 17:34:41 -05:00
  • a5d07e0595 Pull out decode logic into named func newBlockHeaderElectrum(). Jonathan Moody 2022-09-27 17:25:27 -05:00
  • 2e666843f1 Move claimtrie-related service/handlers to jsonrpc_claimtrie.go. Jonathan Moody 2022-09-27 17:10:49 -05:00
  • 4005996992 Move and rename BlockchainCodec, BlockchainCodecRequest. These are not specifically "blockchain", rather they are specific to how gorilla/rpc works. Jonathan Moody 2022-09-27 17:07:16 -05:00
  • 979d0d16b6
    Adjust EffectiveAmountValue to include ActivatedSupportSum. (#61) Jonathan Moody 2022-09-16 10:03:15 -05:00
  • 7d24ff82bf
    Merge pull request #55 from moodyjon/blockchain_rpc1 Jonathan Moody 2022-09-14 10:23:34 -05:00
  • 86a287ec69 Skip TestUDPPing if production server is down. blockchain_rpc1 Jonathan Moody 2022-09-13 15:34:09 -05:00
  • 891f63fb5c Update jsonrpc_blockchain_tests.go for new sample data. Jonathan Moody 2022-09-13 15:33:24 -05:00
  • 789974227f Add sample data from test_variety_of_transactions_and_longish_history. Rework tests to use the sample data. Jonathan Moody 2022-09-13 15:05:11 -05:00
  • 71e79c553e One more RPC (get_server_height), and update comment to include full RPC name. Jonathan Moody 2022-09-08 13:17:52 -05:00
  • b298454727 Fix RPC handler registration and BlockGetChunkResp name. Jonathan Moody 2022-09-08 11:50:06 -05:00
  • 8c8871b4d2 Register blockchain.* handlers in jsonrpc_service.go. Jonathan Moody 2022-09-07 15:01:47 -05:00
  • 20e32437e9 Rename blockchain.go -> jsonrpc_blockchain.go. Jonathan Moody 2022-09-07 14:06:31 -05:00
  • d0d6145f9d Refactor blockchain.go handlers to be compatible with gorilla/rpc. Add speculative BlockchainCodecRequest which might handle rewriting incoming method names. Jonathan Moody 2022-09-07 13:49:34 -05:00
  • 90afae7cd5 Add scripthash variants of RPC handlers. Jonathan Moody 2022-09-02 16:46:35 -05:00
  • f5b8f2ce0d Add --chain=X argument, and use it to determine chain when DB is empty. Jonathan Moody 2022-09-02 13:45:49 -05:00
  • 321bcf6420 Fix encoding of TX and Block hashes in response. Jonathan Moody 2022-09-01 15:26:37 -05:00
  • 293a3f685e Fix some DB logic and add tests (blockchain_test.go). Jonathan Moody 2022-09-01 14:21:53 -05:00
  • f55a5ed777 Continuing blockchain RPC handler work. Add JSON tags. Fetch Height using TxCounts. Jonathan Moody 2022-08-31 17:23:47 -05:00
  • 50f7e91ead Infer chain (mainnet, testnet3, regtest) based on DBStateValue. Correct typo DDVersion -> DBVersion. Misc logging improvements. Jonathan Moody 2022-09-07 14:16:27 -05:00
  • fe18c70bf7 Add some blockchain RPC handlers and database fetching routines. Jonathan Moody 2022-08-29 14:51:00 -05:00
  • 9403d84a83
    WIP: Resolve json rpc (#57) Jeffrey Picard 2022-09-07 21:36:07 +03:00
  • 09fd939b60
    Merge pull request #60 from moodyjon/slicebacked_type_param Jonathan Moody 2022-09-07 07:22:01 -05:00
  • dc9b4ada2a Update go.mod, go.sum for use of constraints (x/exp). Jonathan Moody 2022-09-07 07:13:51 -05:00
  • c38134b645
    Merge pull request #56 from moodyjon/slicebacked_type_param Jonathan Moody 2022-09-07 05:39:34 -05:00
  • d025ea1616
    Add "on: pull_request" to worflow. (#59) Jonathan Moody 2022-09-06 14:13:13 -05:00
  • 5b690ff2ff
    Merge pull request #58 from moodyjon/hashx_history_fix Jonathan Moody 2022-09-06 13:03:07 -05:00
  • aa16207aa5 Fix struct annotation for HashXHistoryValue. TxNums now little-endian. Jonathan Moody 2022-09-06 12:57:45 -05:00
  • 78b9a625eb
    Merge pull request #54 from moodyjon/hashx_history_fix Jonathan Moody 2022-09-06 12:40:06 -05:00
  • e46ac7c913 HashXHistoryValue TxNums are unique in that they are little-endian (at least when written by Python scribe on ARM64 Mac or x86). Jonathan Moody 2022-09-01 12:58:41 -05:00
  • 8ac89195db Add element type param T to SlicedBacked[T]. Require T satisfy constraints.Ordered to make BisectRight() statically type-safe. Jonathan Moody 2022-08-30 14:16:35 -05:00
  • 4e11433325 Payload of HashXHistoryValue should be an array of uint32 representing "txnums". Jonathan Moody 2022-08-26 10:18:01 -04:00
  • 9d9c73f97f
    Add RepostedCount, EffectiveAmount prefix rows (#51) Jonathan Moody 2022-08-26 09:24:39 -04:00
  • cbdcc5faeb v0.2022.08.16.1 v0.2022.08.16.1 Jeffrey Picard 2022-08-16 14:56:19 +03:00
  • 3a53f46114
    Updates for build (#50) Jeffrey Picard 2022-08-16 14:52:26 +03:00
  • 071aa2a7ad
    Catchup to python-herald schema. Plus lots of refactoring. (#49) Jonathan Moody 2022-08-16 01:45:41 -04:00
  • b018217899
    fix release script (#48) Jeffrey Picard 2022-08-10 21:06:56 +03:00
  • 13479794ed
    Update readme.md Jack Robison 2022-08-10 11:05:39 -04:00
  • ab2a39ac6c v0.2022.08.09.1 v0.2022.08.09.1 Jeffrey Picard 2022-08-09 17:19:53 +03:00
  • ffa426b899
    Bump to grpc v1.46.0. (#45) Jonathan Moody 2022-08-09 07:44:00 -04:00
  • b9f7d595bd
    Herald.go (#47) Jeffrey Picard 2022-08-09 14:43:01 +03:00
  • 49e5d7b8c1
    Fix release_time query to match python hub. (#41) Jonathan Moody 2022-08-03 12:19:25 -04:00
  • 8b4b27bdb9
    Update readme.md Jack Robison 2022-08-02 11:53:23 -04:00
  • b2dd70bc7c
    Jeffreypicard/feature/move to herald (#37) Jeffrey Picard 2022-07-11 20:31:27 +03:00
  • 7fcb4a750d remove old workflow Jeffrey Picard 2022-04-29 22:30:11 +00:00
  • 3dfe5a5bc3 fix workflows Jeffrey Picard 2022-04-29 17:05:15 +00:00
  • 28a299efa8
    rocksdb (#29) Jeffrey Picard 2022-04-29 11:04:01 -04:00
  • ff0694def1 v0.2022.01.21.1 v0.2022.01.21.1 Jeffrey Picard 2022-01-21 12:27:09 -05:00
  • 78f35cc96c
    Merge pull request #31 from lbryio/bugfix/x/jeffreypicard/return-empty-list-on-no-index Alex Grin 2022-01-10 11:30:26 -05:00
  • d51f5ca064 Fix behavior when the index isn't there. Jeffrey Picard 2022-01-05 10:07:15 -05:00
  • 9e2a39e938 v0.2021.12.18.1 v0.2021.12.18.1 Jeffrey Picard 2021-12-18 11:14:37 -05:00
  • 8e99bc56d0
    add sd_hash prefix search (#30) Victor Shyba 2021-12-17 11:37:32 -03:00
  • 447e931f18 v0.2021.12.06.1 v0.2021.12.06.1 Jeffrey Picard 2021-12-06 17:42:34 -05:00
  • 516b95d96b
    Merge pull request #24 from lbryio/feature/18/jeffreypicard/udp-endpoint Jeffrey Picard 2021-12-06 11:57:47 -05:00
  • 2a1d6fa7d4 Updates based on code review Jeffrey Picard 2021-12-03 11:52:21 -05:00
  • 2e52c1639c Refactor and fixes related to PR comments. Jeffrey Picard 2021-12-01 19:32:23 -05:00
  • 1c1d288654 Set UDP flags correctly. Jeffrey Picard 2021-11-24 19:14:52 -05:00
  • 283686ecac Fix startup flags Jeffrey Picard 2021-11-24 18:56:34 -05:00
  • ca0e8562f3 Add disable-federation flag, default false Jeffrey Picard 2021-11-24 18:36:19 -05:00
  • 72ea236d86 Run gofmt Jeffrey Picard 2021-11-24 18:24:06 -05:00
  • 0a1ba43d66 Full SPVPong parsing and tests against prod server. Jeffrey Picard 2021-11-24 17:58:05 -05:00
  • 4e6b47c2a3 Test UDPPing country parsing. Jeffrey Picard 2021-11-24 16:19:18 -05:00
  • ee5fcaef14 Added test for getting IP with udp from prod servers. Jeffrey Picard 2021-11-24 16:03:42 -05:00
  • 159f4b941b Add claim protobuf definition for UDP country encoding. Jeffrey Picard 2021-11-24 15:27:38 -05:00
  • 355eab682c changes based on comments Jeffrey Picard 2021-11-15 08:52:32 -05:00
  • 395e1db489 UDPServer / ip address resolution Jeffrey Picard 2021-11-09 19:39:13 -05:00
  • 602292281c
    Merge pull request #28 from lbryio/feature/jeffreypicard/update-range-query Jeffrey Picard 2021-12-06 11:24:47 -05:00
  • d511b08736 Switch RangeField to int32 in the protobuf, as none of those fields use strings. Jeffrey Picard 2021-12-03 19:39:40 -05:00
  • 2537a84b86 Update RangeField Jeffrey Picard 2021-12-02 20:16:06 -05:00
  • d469997dfa Update RangeField range-queries Jeffrey Picard 2021-12-02 20:16:06 -05:00
  • c39d35be99 add staked_amount add_staked_amount Victor Shyba 2021-11-23 17:14:08 -03:00
  • 67b3dce492 v0.2021.11.05.1 v0.2021.11.05.1 Jeffrey Picard 2021-11-05 11:16:40 -04:00
  • 284f825d22
    Merge pull request #20 from lbryio/feature/6/jeffreypicard/hub-federation Jeffrey Picard 2021-11-05 11:14:05 -04:00
  • 15614c6a5b Remove unused code Jeffrey Picard 2021-11-05 11:11:26 -04:00
  • c61c8db92a Some cleanup based on review and use map + sync.RWMutex instead of sync.Map Jeffrey Picard 2021-11-04 20:57:23 -04:00