Browse Source

Release v 0.2.0 is ready to go

pull/64/head
jahway603 3 weeks ago
parent
commit
4a8a608c83
  1. 8
      README.md
  2. 4
      cmd/root.go
  3. 2
      common/cache.go
  4. 2
      common/common.go
  5. 12
      contrib/debian/changelog
  6. 4
      contrib/debian/control
  7. 3
      contrib/debian/files
  8. 4
      doc/man/lightwalletd.1
  9. 10
      frontend/rpc_client.go
  10. 2
      parser/transaction.go
  11. 2
      util/build-debian-package.sh
  12. 4
      walletrpc/service.proto
  13. 8
      walletrpc/service_grpc.pb.go

8
README.md

@ -174,8 +174,12 @@ Or do `make protobuf`
To update the version of lightwalletd, update the value of the `Version` variable in common/common.go .
## Support
For support or other questions, join us on [Telegram](https://hush.is/telegram), or tweet at [@HushIsPrivacy](https://twitter.com/HushIsPrivacy), or toot at our [Mastodon](https://fosstodon.org/@myhushteam) or join [Telegram Support](https://hush.is/telegram_support).
## Support and Socials
* Telegram: [https://hush.is/tg](https://hush.is/tg)
* Matrix: [https://hush.is/matrix](https://hush.is/matrix)
* Twitter: [https://hush.is/twitter](https://hush.is/twitter)
* PeerTube [https://hush.is/peertube](https://hush.is/peertube)
## License
GPLv3 or later

4
cmd/root.go

@ -49,7 +49,7 @@ var rootCmd = &cobra.Command{
TLSKeyPath: viper.GetString("tls-key"),
LogLevel: viper.GetUint64("log-level"),
LogFile: viper.GetString("log-file"),
HushConfPath: viper.GetString("hush-conf-path"),
HushConfPath: viper.GetString("hush-conf-path"),
RPCUser: viper.GetString("rpcuser"),
RPCPassword: viper.GetString("rpcpassword"),
RPCHost: viper.GetString("rpchost"),
@ -204,7 +204,7 @@ func startServer(opts *common.Options) error {
// Indirect function for test mocking (so unit tests can talk to stub functions).
common.RawRequest = rpcClient.RawRequest
// Ensure that we can communicate with zcashd
// Ensure that we can communicate with hushd
common.FirstRPC()
getLightdInfo, err := common.GetLightdInfo()

2
common/cache.go

@ -284,7 +284,7 @@ func (c *BlockCache) Add(height int, block *walletrpc.CompactBlock) error {
bheight := int(block.Height)
if bheight != height {
// This could only happen if zcashd returned the wrong
// This could only happen if hushd returned the wrong
// block (not the height we requested).
Log.Fatal("cache.Add wrong height: ", bheight, " expecting: ", height)
return nil

2
common/common.go

@ -18,7 +18,7 @@ import (
// TODO: 'make build' will overwrite this string with the output of git-describe (tag)
var (
Version = "v0.1.3"
Version = "v0.2.0"
GitCommit = ""
Branch = ""
BuildDate = ""

12
contrib/debian/changelog

@ -1,9 +1,19 @@
lightwalletd (0.2.0) unstable; urgency=medium
* Fixed logging error
* Fixed issue with clients sending expired transactions
* Implemented help system in Makefile
* Updates to manpage to include all CLI options
* Updates to Documentation
-- Hush Core <jahway603@protonmail.com> Wed, 08 May 2024 14:57:17 -0700
lightwalletd (0.1.3) unstable; urgency=medium
* Bugfixes
* Removed old & unused code
-- Hush Core <jahway603@protonmail.com> Fri, 23 June 2023 06:39:17 -0700
-- Hush Core <jahway603@protonmail.com> Fri, 23 Jun 2023 06:39:17 -0700
lightwalletd (0.1.2) unstable; urgency=medium

4
contrib/debian/control

@ -11,4 +11,6 @@ Vcs-Browser: https://git.hush.is/hush/lightwalletd
Package: lightwalletd
Architecture: amd64 arm64
Depends: ${shlibs:Depends}
Description: Hush lightwallet daemon to run a Silent Dragon Lite server. Speak And Transact Freely. Hush inherits from Bitcoin Protocol and Zcash Protocol and is focused on private communications.
Description: Hush lightwallet daemon to run a Silent Dragon Lite server.
Speak And Transact Freely with Hush, which inherits from Bitcoin Protocol and
Zcash Protocol and is focused on private communications.

3
contrib/debian/files

@ -1 +1,4 @@
lightwalletd_0.1.3_amd64.deb utils optional
lightwalletd_0.1.3_arm64.deb utils optional
lightwalletd_0.2.0_amd64.deb utils optional
lightwalletd_0.2.0_arm64.deb utils optional

4
doc/man/lightwalletd.1

@ -1,6 +1,6 @@
.TH LIGHTWALLETD "1" "May 2024" "lightwalletd v0.1.3" "User Commands"
.TH LIGHTWALLETD "1" "May 2024" "lightwalletd v0.2.0" "User Commands"
.SH NAME
lightwalletd \- manual page for hush lightwalletd v0.1.3
lightwalletd \- manual page for hush lightwalletd v0.2.0
.SH DESCRIPTION
.B lightwalletd
runs a lightwallet daemon for a Hush Silent Dragon Lite node.

10
frontend/rpc_client.go

@ -6,9 +6,9 @@ package frontend
import (
"net"
"git.hush.is/hush/lightwalletd/common"
"github.com/btcsuite/btcd/rpcclient"
"github.com/pkg/errors"
"git.hush.is/hush/lightwalletd/common"
ini "gopkg.in/ini.v1"
)
@ -26,15 +26,15 @@ func NewZRPCFromConf(confPath string) (*rpcclient.Client, error) {
return NewZRPCFromCreds(net.JoinHostPort(rpcaddr, rpcport), username, password)
}
// NewZRPCFromFlags gets zcashd rpc connection information from provided flags.
// NewZRPCFromFlags gets hushd rpc connection information from provided flags.
func NewZRPCFromFlags(opts *common.Options) (*rpcclient.Client, error) {
// Connect to local Zcash RPC server using HTTP POST mode.
// Connect to local Hush RPC server using HTTP POST mode.
connCfg := &rpcclient.ConnConfig{
Host: net.JoinHostPort(opts.RPCHost, opts.RPCPort),
User: opts.RPCUser,
Pass: opts.RPCPassword,
HTTPPostMode: true, // Zcash only supports HTTP POST mode
DisableTLS: true, // Zcash does not provide TLS by default
HTTPPostMode: true, // Hush only supports HTTP POST mode
DisableTLS: true, // Hush does not provide TLS by default
}
return rpcclient.New(connCfg, nil)
}

2
parser/transaction.go

@ -336,7 +336,7 @@ func (p *action) ToCompact() *walletrpc.CompactOrchardAction {
}
*/
// Transaction encodes a full (zcashd) transaction.
// Transaction encodes a full (hushd) transaction.
type Transaction struct {
*rawTransaction
rawBytes []byte

2
util/build-debian-package.sh

@ -43,10 +43,8 @@ fi
# Architecture CLI option
if [ "$1" = "--amd64" -o "$1" = "--a64" ]; then
ARCH="amd64"
break
elif [ "$1" = "--arm" -o "$1" = "--ARM" ]; then
ARCH="aarch64"
break
fi
# Set Version-to-build from Second CLI option
PACKAGE_VERSION=$2

4
walletrpc/service.proto

@ -128,9 +128,9 @@ service CompactTxStreamer {
// Return a list of consecutive compact blocks
rpc GetBlockRange(BlockRange) returns (stream CompactBlock) {}
// Return the requested full (not compact) transaction (as from zcashd)
// Return the requested full (not compact) transaction (as from hushd)
rpc GetTransaction(TxFilter) returns (RawTransaction) {}
// Submit the given transaction to the Zcash network
// Submit the given transaction to the Hush network
rpc SendTransaction(RawTransaction) returns (SendResponse) {}
// Return the txids corresponding to the given t-address within the given block range

8
walletrpc/service_grpc.pb.go

@ -28,9 +28,9 @@ type CompactTxStreamerClient interface {
GetBlock(ctx context.Context, in *BlockID, opts ...grpc.CallOption) (*CompactBlock, error)
// Return a list of consecutive compact blocks
GetBlockRange(ctx context.Context, in *BlockRange, opts ...grpc.CallOption) (CompactTxStreamer_GetBlockRangeClient, error)
// Return the requested full (not compact) transaction (as from zcashd)
// Return the requested full (not compact) transaction (as from hushd)
GetTransaction(ctx context.Context, in *TxFilter, opts ...grpc.CallOption) (*RawTransaction, error)
// Submit the given transaction to the Zcash network
// Submit the given transaction to the Hush network
SendTransaction(ctx context.Context, in *RawTransaction, opts ...grpc.CallOption) (*SendResponse, error)
// Return the txids corresponding to the given t-address within the given block range
GetTaddressTxids(ctx context.Context, in *TransparentAddressBlockFilter, opts ...grpc.CallOption) (CompactTxStreamer_GetTaddressTxidsClient, error)
@ -400,9 +400,9 @@ type CompactTxStreamerServer interface {
GetBlock(context.Context, *BlockID) (*CompactBlock, error)
// Return a list of consecutive compact blocks
GetBlockRange(*BlockRange, CompactTxStreamer_GetBlockRangeServer) error
// Return the requested full (not compact) transaction (as from zcashd)
// Return the requested full (not compact) transaction (as from hushd)
GetTransaction(context.Context, *TxFilter) (*RawTransaction, error)
// Submit the given transaction to the Zcash network
// Submit the given transaction to the Hush network
SendTransaction(context.Context, *RawTransaction) (*SendResponse, error)
// Return the txids corresponding to the given t-address within the given block range
GetTaddressTxids(*TransparentAddressBlockFilter, CompactTxStreamer_GetTaddressTxidsServer) error

Loading…
Cancel
Save