Commit graph

  • d2193e980a
    blockchain.transaction.broadcast implementation (#80) master Jonathan Moody 2022-12-16 13:54:19 -0600
  • 0c79e6003a Correct default daemon URL. Jonathan Moody 2022-12-16 12:49:03 -0600
  • 5e977e59a2 Remove dead code. Tighten definition of TransactionBroadcastReq. Jonathan Moody 2022-12-16 12:33:10 -0600
  • 8f6a8db681 Add --daemon-ca-path argument and establish HTTPS connection if specified. Jonathan Moody 2022-12-16 12:23:15 -0600
  • 818822d98e Handle deprecation of node.js 12 actions. Jonathan Moody 2022-12-16 11:39:54 -0600
  • 82fc956190 Connect to lbcd using lbcd/rpcclient library. Jonathan Moody 2022-12-16 08:45:07 -0600
  • 4792e85af0 Correct HashXStatusKey field. Should be HASHX_LEN. Jonathan Moody 2022-12-15 10:38:08 -0600
  • 8f188fcdd3 Optional --daemon-url. Jonathan Moody 2022-12-15 09:04:55 -0600
  • efac6ffd56 Attempt LBCD connection with rpc.Client. Jonathan Moody 2022-12-14 16:20:37 -0600
  • 2821fc0ee9 Generate secondary hashXNotification(s) on every headerNotification. Jonathan Moody 2022-12-14 15:37:24 -0600
  • 711c4b4b7b
    WIP: Json rpc federation, search/getclaimbyid, and shutdown (#76) Jeffrey Picard 2022-12-07 11:01:36 -0500
  • af71aeddf9 cleanup test Jeffrey Picard 2022-12-07 14:04:45 +0000
  • f774823b2e use logrus everywhere Jeffrey Picard 2022-12-07 13:53:59 +0000
  • 95a0b863a2 cleanup and fix a bunch of compiler warnings Jeffrey Picard 2022-12-07 12:46:51 +0000
  • 0a9ee690b5 use int for port args Jeffrey Picard 2022-12-07 12:12:03 +0000
  • 99a9d37f8c tie into session manager in jsonrpc peers subscribe Jeffrey Picard 2022-11-19 08:16:25 +0000
  • 6c287425ef remove commented code Jeffrey Picard 2022-11-17 22:18:16 +0000
  • ccabb3f182 cleanup some peers stuff Jeffrey Picard 2022-11-17 22:16:12 +0000
  • 0a5a7c7d33 hook jsonrpc peers subcribe into current federation Jeffrey Picard 2022-11-17 21:52:58 +0000
  • 6a28d809c2 getclaimbyid and search Jeffrey Picard 2022-11-13 11:47:55 +0000
  • ec719e33fa fixed data race finally.... Jeffrey Picard 2022-11-04 01:40:43 +0000
  • d90a968afc Cleanup shutdown and peers subscribe Jeffrey Picard 2022-11-04 01:03:28 +0000
  • 317cdf7129
    WIP: blockchain.transaction.yyy JSON RPC implementations (#78) Jonathan Moody 2022-12-06 16:14:28 -0500
  • ac2c3bcb3b Set IncludeStop=false generally to avoid returning extra rows. Other misc fixes. Jonathan Moody 2022-12-06 11:48:43 -0500
  • ee95fea47c Add more special handling of DBStateValue.Genesis hash. Jonathan Moody 2022-11-30 16:37:18 -0600
  • 829a2682ed Fine tune JSON RPC handlers and types to match lbry-sdk expectations. Implement UnmarshalJSON()/MarshalJSON() for several types. Jonathan Moody 2022-11-22 14:44:05 -0600
  • 6965e64a8b Adapt to new HeightHash struct. Jonathan Moody 2022-11-22 13:33:54 -0600
  • 22a50ad085 Limit session-based JSON RPC service to IPv4. Client not ready for IPv6. Jonathan Moody 2022-11-22 13:27:40 -0600
  • 90b641c86c Add BlockHeader to HeightHash notification. Jonathan Moody 2022-11-22 10:29:44 -0600
  • d5d8e0db7f Convert Args.Port to int and validate. Run UDP ping server on JSONRPCPort too. Jonathan Moody 2022-11-22 10:17:35 -0600
  • 6a4239e1b8 Correct interpretation of DBStateValue Genesis hash. Jonathan Moody 2022-11-22 09:52:02 -0600
  • 79aed85b17 Attempt to fill in the details of transaction.get_batch, including merkle path. Jonathan Moody 2022-10-25 17:15:33 -0400
  • 6e41369805 Move session manager start/stop to a better place. Jonathan Moody 2022-10-20 14:44:57 -0400
  • cb7f7a157f Register RPC service object. Jonathan Moody 2022-10-20 14:28:09 -0400
  • 8c2df7e62a Partial blockchain.transaction.yyy RPC implementations. Jonathan Moody 2022-10-20 14:05:16 -0400
  • e070e8a51e
    JSON RPC compatibility workarounds to support lbry-sdk (#75) Jonathan Moody 2022-10-29 11:42:24 -0400
  • 18fa12a6bd Elaborate comment on jsonPatchingCodec. Jonathan Moody 2022-10-28 09:31:10 -0400
  • a3bedc2c1d Workaround to allow lbry-sdk to call server.version and server.features. Incoming/outgoing JSON is patched using yet another codec (jsonPatchingCodec). Add more logging of raw/patched JSON. Jonathan Moody 2022-10-27 15:52:03 -0400
  • 3bdad6ccf8 Fix log spam (Already shutting down...) Jonathan Moody 2022-10-27 10:51:34 -0400
  • cd7f20a461
    Server endpoints goroutine refactor (#69) Jeffrey Picard 2022-10-25 08:48:13 +0300
  • 140c5392e5 fix Jeffrey Picard 2022-10-24 14:41:03 +0000
  • 8cc5885339 asdf Jeffrey Picard 2022-10-24 11:45:46 +0000
  • 89017483ac NewDebug Jeffrey Picard 2022-10-24 11:14:23 +0000
  • 418d4171b4 cleanup Jeffrey Picard 2022-10-24 10:54:59 +0000
  • ffaacc0985 cleanup and add manage goroutine to stopper pattern Jeffrey Picard 2022-10-20 09:23:31 +0000
  • 67f0ae5e44 tests for new jsonrpc endpoints Jeffrey Picard 2022-10-19 13:26:06 +0000
  • d1ebe002ac add default json rpc http port and cleanup Jeffrey Picard 2022-10-17 15:01:09 +0000
  • e79a798781 set the rest of the default args for tests Jeffrey Picard 2022-10-17 14:52:40 +0000
  • a198113f73 currently broken, incorporated stop groups into the session manager Jeffrey Picard 2022-10-17 11:45:45 +0000
  • 31e91f67c8 remove shutdown and done channels from db and use stop group Jeffrey Picard 2022-10-15 16:11:06 +0000
  • 1822fc4064 remove OpenIterators Jeffrey Picard 2022-10-15 15:52:29 +0000
  • c2624ba8fa remove shutdowncalled and itmut Jeffrey Picard 2022-10-15 15:11:56 +0000
  • 7679b96231 updates and refactors Jeffrey Picard 2022-10-15 15:00:58 +0000
  • 77fee923cb set genesis hash properly Jeffrey Picard 2022-10-14 13:36:42 +0000
  • dcbf09e781 use lbry.go stop pattern Jeffrey Picard 2022-10-14 09:33:29 +0000
  • 5f2d330f76 more endpoints server-xxx-endpoints Jeffrey Picard 2022-10-11 22:30:54 +0000
  • 698bc22360 server.banner Jeffrey Picard 2022-10-11 14:29:51 +0000
  • 66961c1e3d server.xxx endpoints Jeffrey Picard 2022-10-11 10:54:46 +0000
  • b85556499f v0.2022.10.05.1 v0.2022.10.05.1 Jeffrey Picard 2022-10-05 06:25:42 +0300
  • 8eb7841600
    little fixes for debugging and shutdown (#67) Jeffrey Picard 2022-10-05 06:24:42 +0300
  • bc682c6f34 little fixes for debugging and shutdown Jeffrey Picard 2022-10-05 03:09:00 +0000
  • 6d4b9b5e37 v0.2022.10.04.1 v0.2022.10.04.1 Jeffrey Picard 2022-10-04 20:52:47 +0300
  • 537b8c7ddd
    integration testing scripts (#64) Jeffrey Picard 2022-10-04 20:25:44 +0300
  • 354973aee4 add shutdowncalled bool to db Jeffrey Picard 2022-10-04 04:43:27 +0000
  • f086dd0d57 fix testing Jeffrey Picard 2022-10-03 10:16:23 +0000
  • 0bcb069e04 changes per code review Jeffrey Picard 2022-10-03 09:41:20 +0000
  • f303907acd changes per pr Jeffrey Picard 2022-09-28 11:26:26 +0000
  • d343d88d34 db shutdown racecondition fix Jeffrey Picard 2022-09-24 12:22:22 +0000
  • fedd27d3d6 changes Jeffrey Picard 2022-09-24 06:28:49 +0000
  • 76e639b757 update Jeffrey Picard 2022-09-23 13:51:25 +0000
  • fd0e5c58c2 integration testing scripts Jeffrey Picard 2022-09-21 09:21:13 +0000
  • 8fb3db8136
    Add subscribe/unsubscribe RPCs. Add session, sessionManager, and serve JSON RPC (without HTTP). (#66) Jonathan Moody 2022-10-04 10:05:06 -0400
  • 5f068341e3 Use time.Ticker object to drive management activity. blockchain_rpc2 Jonathan Moody 2022-10-03 14:37:00 -0400
  • 1eb645a0b9 HashXStatus, HashXMempoolStatus not populated by default. Fix GetStatus(). Jonathan Moody 2022-09-29 15:13:30 -0500
  • a91e9f82ff Add tests for headers, headers.subscribe, address.subscribe. Jonathan Moody 2022-09-29 12:12:38 -0500
  • 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 -0500
  • 813fd4590a Add --max-sessions, --session-timeout args. Enforce max sessions. Jonathan Moody 2022-09-28 14:49:32 -0500
  • e56edf0c9a Handle failures with goto instead of break. Update error logging. Jonathan Moody 2022-09-28 11:26:30 -0500
  • 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 -0500
  • 1d227dbca8 Support both pure JSON and JSON-over-HTTP services. Forward NotifierChan messages to sessionManager. Jonathan Moody 2022-09-27 18:46:11 -0500
  • 7f47de2949 Add core session/subscription logic (session.go). Implement subsribe/unsubscribe handlers. Jonathan Moody 2022-09-27 18:29:17 -0500
  • b9cb9d8c5a Make the service objects independent, so we don't have inheritance. Jonathan Moody 2022-09-27 18:08:16 -0500
  • 8c66d67a52 Implement GetStatus() to pull data from HashXStatus table. Jonathan Moody 2022-09-27 18:02:08 -0500
  • 603a18f590 Drop http.Request arg from handlers, and use RegisterTCPService(). Jonathan Moody 2022-09-27 17:47:27 -0500
  • d03c992a25 Rename BlockchainService -> BlockchainBlockService. Jonathan Moody 2022-09-27 17:34:41 -0500
  • a5d07e0595 Pull out decode logic into named func newBlockHeaderElectrum(). Jonathan Moody 2022-09-27 17:25:27 -0500
  • 2e666843f1 Move claimtrie-related service/handlers to jsonrpc_claimtrie.go. Jonathan Moody 2022-09-27 17:10:49 -0500
  • 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 -0500
  • 979d0d16b6
    Adjust EffectiveAmountValue to include ActivatedSupportSum. (#61) Jonathan Moody 2022-09-16 10:03:15 -0500
  • 60b6c345a8 Adjust EffectiveAmountValue to include ActivatedSupportSum. Make use of this in GetEffectiveAmount() tests. Jonathan Moody 2022-09-14 15:51:21 -0500
  • 7d24ff82bf
    Merge pull request #55 from moodyjon/blockchain_rpc1 Jonathan Moody 2022-09-14 10:23:34 -0500
  • 86a287ec69 Skip TestUDPPing if production server is down. blockchain_rpc1 Jonathan Moody 2022-09-13 15:34:09 -0500
  • 891f63fb5c Update jsonrpc_blockchain_tests.go for new sample data. Jonathan Moody 2022-09-13 15:33:24 -0500
  • 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 -0500
  • 71e79c553e One more RPC (get_server_height), and update comment to include full RPC name. Jonathan Moody 2022-09-08 13:17:52 -0500
  • b298454727 Fix RPC handler registration and BlockGetChunkResp name. Jonathan Moody 2022-09-08 11:50:06 -0500
  • 8c8871b4d2 Register blockchain.* handlers in jsonrpc_service.go. Jonathan Moody 2022-09-07 15:01:47 -0500
  • 20e32437e9 Rename blockchain.go -> jsonrpc_blockchain.go. Jonathan Moody 2022-09-07 14:06:31 -0500
  • 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 -0500
  • 90afae7cd5 Add scripthash variants of RPC handlers. Jonathan Moody 2022-09-02 16:46:35 -0500