name change

This commit is contained in:
c4ei 2023-08-23 15:36:21 +09:00
parent d932206429
commit afb7bbe095
257 changed files with 1038 additions and 1036 deletions

View File

@ -32,8 +32,8 @@ jobs:
# `-s -w` strips the binary to produce smaller size binaries # `-s -w` strips the binary to produce smaller size binaries
run: | run: |
go build -v -ldflags="-s -w -extldflags=-static" -tags netgo,osusergo -o ./bin/ . ./cmd/... go build -v -ldflags="-s -w -extldflags=-static" -tags netgo,osusergo -o ./bin/ . ./cmd/...
archive="bin/kaspad-${{ github.event.release.tag_name }}-linux.zip" archive="bin/c4exd-${{ github.event.release.tag_name }}-linux.zip"
asset_name="kaspad-${{ github.event.release.tag_name }}-linux.zip" asset_name="c4exd-${{ github.event.release.tag_name }}-linux.zip"
zip -r "${archive}" ./bin/* zip -r "${archive}" ./bin/*
echo "archive=${archive}" >> $GITHUB_ENV echo "archive=${archive}" >> $GITHUB_ENV
echo "asset_name=${asset_name}" >> $GITHUB_ENV echo "asset_name=${asset_name}" >> $GITHUB_ENV
@ -43,8 +43,8 @@ jobs:
shell: bash shell: bash
run: | run: |
go build -v -ldflags="-s -w" -o bin/ . ./cmd/... go build -v -ldflags="-s -w" -o bin/ . ./cmd/...
archive="bin/kaspad-${{ github.event.release.tag_name }}-win64.zip" archive="bin/c4exd-${{ github.event.release.tag_name }}-win64.zip"
asset_name="kaspad-${{ github.event.release.tag_name }}-win64.zip" asset_name="c4exd-${{ github.event.release.tag_name }}-win64.zip"
powershell "Compress-Archive bin/* \"${archive}\"" powershell "Compress-Archive bin/* \"${archive}\""
echo "archive=${archive}" >> $GITHUB_ENV echo "archive=${archive}" >> $GITHUB_ENV
echo "asset_name=${asset_name}" >> $GITHUB_ENV echo "asset_name=${asset_name}" >> $GITHUB_ENV
@ -53,8 +53,8 @@ jobs:
if: runner.os == 'macOS' if: runner.os == 'macOS'
run: | run: |
go build -v -ldflags="-s -w" -o ./bin/ . ./cmd/... go build -v -ldflags="-s -w" -o ./bin/ . ./cmd/...
archive="bin/kaspad-${{ github.event.release.tag_name }}-osx.zip" archive="bin/c4exd-${{ github.event.release.tag_name }}-osx.zip"
asset_name="kaspad-${{ github.event.release.tag_name }}-osx.zip" asset_name="c4exd-${{ github.event.release.tag_name }}-osx.zip"
zip -r "${archive}" ./bin/* zip -r "${archive}" ./bin/*
echo "archive=${archive}" >> $GITHUB_ENV echo "archive=${archive}" >> $GITHUB_ENV
echo "asset_name=${asset_name}" >> $GITHUB_ENV echo "asset_name=${asset_name}" >> $GITHUB_ENV

View File

@ -65,7 +65,7 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Install kaspad - name: Install c4exd
run: go install ./... run: go install ./...
- name: Install golint - name: Install golint

8
.gitignore vendored
View File

@ -2,7 +2,7 @@
*~ *~
# Databases # Databases
kaspad.db c4exd.db
*-shm *-shm
*-wal *-wal
@ -19,10 +19,10 @@ kaspad.db
*.test *.test
# Real binaries, build with `go build .` # Real binaries, build with `go build .`
kaspad c4exd
cmd/gencerts/gencerts cmd/gencerts/gencerts
cmd/kaspactl/kaspactl cmd/c4exctl/c4exctl
cmd/kasminer/kaspaminer cmd/kasminer/c4exminer
*.exe *.exe
*.exe~ *.exe~

View File

@ -1,6 +1,6 @@
ISC License ISC License
Copyright (c) 2018-2019 The kaspanet developers Copyright (c) 2018-2019 The c4exnet developers
Copyright (c) 2013-2018 The btcsuite developers Copyright (c) 2013-2018 The btcsuite developers
Copyright (c) 2015-2016 The Decred developers Copyright (c) 2015-2016 The Decred developers
Copyright (c) 2013-2014 Conformal Systems LLC. Copyright (c) 2013-2014 Conformal Systems LLC.

View File

@ -3,11 +3,11 @@ Kaspad
==== ====
[![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](https://choosealicense.com/licenses/isc/) [![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](https://choosealicense.com/licenses/isc/)
[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](http://godoc.org/github.com/c4ei/kaspad) [![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](http://godoc.org/github.com/c4ei/c4exd)
Kaspad is the reference full node Kaspa implementation written in Go (golang). Kaspad is the reference full node Kaspa implementation written in Go (golang).
## What is kaspa ## What is c4ex
Kaspa is an attempt at a proof-of-work cryptocurrency with instant confirmations and sub-second block times. It is based on [the PHANTOM protocol](https://eprint.iacr.org/2018/104.pdf), a generalization of Nakamoto consensus. Kaspa is an attempt at a proof-of-work cryptocurrency with instant confirmations and sub-second block times. It is based on [the PHANTOM protocol](https://eprint.iacr.org/2018/104.pdf), a generalization of Nakamoto consensus.
@ -28,11 +28,11 @@ Go 1.18 or later.
$ go version $ go version
``` ```
- Run the following commands to obtain and install kaspad including all dependencies: - Run the following commands to obtain and install c4exd including all dependencies:
```bash ```bash
$ git clone https://github.com/c4ei/kaspad $ git clone https://github.com/c4ei/c4exd
$ cd kaspad $ cd c4exd
$ go install . ./cmd/... $ go install . ./cmd/...
``` ```
@ -47,7 +47,7 @@ Kaspad has several configuration options available to tweak how it runs, but all
of the basic operations work with zero configuration. of the basic operations work with zero configuration.
```bash ```bash
$ kaspad $ c4exd
``` ```
## Discord ## Discord
@ -58,11 +58,11 @@ Join our discord server using the following link: https://discord.gg/YNYnNN5Pf2
The [integrated github issue tracker](https://github.com/c4ei/yunseokyeol/issues) The [integrated github issue tracker](https://github.com/c4ei/yunseokyeol/issues)
is used for this project. is used for this project.
Issue priorities may be seen at https://github.com/orgs/kaspanet/projects/4 Issue priorities may be seen at https://github.com/orgs/c4exnet/projects/4
## Documentation ## Documentation
The [documentation](https://github.com/kaspanet/docs) is a work-in-progress The [documentation](https://github.com/c4exnet/docs) is a work-in-progress
## License ## License

View File

@ -31,17 +31,17 @@ var desiredLimits = &limits.DesiredLimits{
} }
var serviceDescription = &winservice.ServiceDescription{ var serviceDescription = &winservice.ServiceDescription{
Name: "kaspadsvc", Name: "c4exdsvc",
DisplayName: "Kaspad Service", DisplayName: "Kaspad Service",
Description: "Downloads and stays synchronized with the Kaspa blockDAG and " + Description: "Downloads and stays synchronized with the Kaspa blockDAG and " +
"provides DAG services to applications.", "provides DAG services to applications.",
} }
type kaspadApp struct { type c4exdApp struct {
cfg *config.Config cfg *config.Config
} }
// StartApp starts the kaspad app, and blocks until it finishes running // StartApp starts the c4exd app, and blocks until it finishes running
func StartApp() error { func StartApp() error {
execenv.Initialize(desiredLimits) execenv.Initialize(desiredLimits)
@ -55,7 +55,7 @@ func StartApp() error {
defer logger.BackendLog.Close() defer logger.BackendLog.Close()
defer panics.HandlePanic(log, "MAIN", nil) defer panics.HandlePanic(log, "MAIN", nil)
app := &kaspadApp{cfg: cfg} app := &c4exdApp{cfg: cfg}
// Call serviceMain on Windows to handle running as a service. When // Call serviceMain on Windows to handle running as a service. When
// the return isService flag is true, exit now since we ran as a // the return isService flag is true, exit now since we ran as a
@ -73,7 +73,7 @@ func StartApp() error {
return app.main(nil) return app.main(nil)
} }
func (app *kaspadApp) main(startedChan chan<- struct{}) error { func (app *c4exdApp) main(startedChan chan<- struct{}) error {
// Get a channel that will be closed when a shutdown signal has been // Get a channel that will be closed when a shutdown signal has been
// triggered either from an OS signal such as SIGINT (Ctrl+C) or from // triggered either from an OS signal such as SIGINT (Ctrl+C) or from
// another subsystem such as the RPC server. // another subsystem such as the RPC server.
@ -125,12 +125,12 @@ func (app *kaspadApp) main(startedChan chan<- struct{}) error {
// Create componentManager and start it. // Create componentManager and start it.
componentManager, err := NewComponentManager(app.cfg, databaseContext, interrupt) componentManager, err := NewComponentManager(app.cfg, databaseContext, interrupt)
if err != nil { if err != nil {
log.Errorf("Unable to start kaspad: %+v", err) log.Errorf("Unable to start c4exd: %+v", err)
return err return err
} }
defer func() { defer func() {
log.Infof("Gracefully shutting down kaspad...") log.Infof("Gracefully shutting down c4exd...")
shutdownDone := make(chan struct{}) shutdownDone := make(chan struct{})
go func() { go func() {

View File

@ -5,40 +5,40 @@ wire
[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](http://godoc.org/github.com/c4ei/yunseokyeol/wire) [![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](http://godoc.org/github.com/c4ei/yunseokyeol/wire)
======= =======
Package wire implements the kaspa wire protocol. Package wire implements the c4ex wire protocol.
## Kaspa Message Overview ## Kaspa Message Overview
The kaspa protocol consists of exchanging messages between peers. Each message The c4ex protocol consists of exchanging messages between peers. Each message
is preceded by a header which identifies information about it such as which is preceded by a header which identifies information about it such as which
kaspa network it is a part of, its type, how big it is, and a checksum to c4ex network it is a part of, its type, how big it is, and a checksum to
verify validity. All encoding and decoding of message headers is handled by this verify validity. All encoding and decoding of message headers is handled by this
package. package.
To accomplish this, there is a generic interface for kaspa messages named To accomplish this, there is a generic interface for c4ex messages named
`Message` which allows messages of any type to be read, written, or passed `Message` which allows messages of any type to be read, written, or passed
around through channels, functions, etc. In addition, concrete implementations around through channels, functions, etc. In addition, concrete implementations
of most all kaspa messages are provided. All of the details of marshalling and of most all c4ex messages are provided. All of the details of marshalling and
unmarshalling to and from the wire using kaspa encoding are handled so the unmarshalling to and from the wire using c4ex encoding are handled so the
caller doesn't have to concern themselves with the specifics. caller doesn't have to concern themselves with the specifics.
## Reading Messages Example ## Reading Messages Example
In order to unmarshal kaspa messages from the wire, use the `ReadMessage` In order to unmarshal c4ex messages from the wire, use the `ReadMessage`
function. It accepts any `io.Reader`, but typically this will be a `net.Conn` function. It accepts any `io.Reader`, but typically this will be a `net.Conn`
to a remote node running a kaspa peer. Example syntax is: to a remote node running a c4ex peer. Example syntax is:
```Go ```Go
// Use the most recent protocol version supported by the package and the // Use the most recent protocol version supported by the package and the
// main kaspa network. // main c4ex network.
pver := wire.ProtocolVersion pver := wire.ProtocolVersion
kaspanet := wire.Mainnet c4exnet := wire.Mainnet
// Reads and validates the next kaspa message from conn using the // Reads and validates the next c4ex message from conn using the
// protocol version pver and the kaspa network kaspanet. The returns // protocol version pver and the c4ex network c4exnet. The returns
// are a appmessage.Message, a []byte which contains the unmarshalled // are a appmessage.Message, a []byte which contains the unmarshalled
// raw payload, and a possible error. // raw payload, and a possible error.
msg, rawPayload, err := wire.ReadMessage(conn, pver, kaspanet) msg, rawPayload, err := wire.ReadMessage(conn, pver, c4exnet)
if err != nil { if err != nil {
// Log and handle the error // Log and handle the error
} }
@ -48,24 +48,24 @@ See the package documentation for details on determining the message type.
## Writing Messages Example ## Writing Messages Example
In order to marshal kaspa messages to the wire, use the `WriteMessage` In order to marshal c4ex messages to the wire, use the `WriteMessage`
function. It accepts any `io.Writer`, but typically this will be a `net.Conn` function. It accepts any `io.Writer`, but typically this will be a `net.Conn`
to a remote node running a kaspa peer. Example syntax to request addresses to a remote node running a c4ex peer. Example syntax to request addresses
from a remote peer is: from a remote peer is:
```Go ```Go
// Use the most recent protocol version supported by the package and the // Use the most recent protocol version supported by the package and the
// main bitcoin network. // main bitcoin network.
pver := wire.ProtocolVersion pver := wire.ProtocolVersion
kaspanet := wire.Mainnet c4exnet := wire.Mainnet
// Create a new getaddr kaspa message. // Create a new getaddr c4ex message.
msg := wire.NewMsgGetAddr() msg := wire.NewMsgGetAddr()
// Writes a kaspa message msg to conn using the protocol version // Writes a c4ex message msg to conn using the protocol version
// pver, and the kaspa network kaspanet. The return is a possible // pver, and the c4ex network c4exnet. The return is a possible
// error. // error.
err := wire.WriteMessage(conn, msg, pver, kaspanet) err := wire.WriteMessage(conn, msg, pver, c4exnet)
if err != nil { if err != nil {
// Log and handle the error // Log and handle the error
} }

View File

@ -8,7 +8,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
) )
// MaxInvPerMsg is the maximum number of inventory vectors that can be in any type of kaspa inv message. // MaxInvPerMsg is the maximum number of inventory vectors that can be in any type of c4ex inv message.
const MaxInvPerMsg = 1 << 17 const MaxInvPerMsg = 1 << 17
// errNonCanonicalVarInt is the common format string used for non-canonically // errNonCanonicalVarInt is the common format string used for non-canonically

View File

@ -1,30 +1,30 @@
/* /*
Package appmessage implements the kaspa appmessage protocol. Package appmessage implements the c4ex appmessage protocol.
At a high level, this package provides support for marshalling and unmarshalling At a high level, this package provides support for marshalling and unmarshalling
supported kaspa messages to and from the appmessage. This package does not deal supported c4ex messages to and from the appmessage. This package does not deal
with the specifics of message handling such as what to do when a message is with the specifics of message handling such as what to do when a message is
received. This provides the caller with a high level of flexibility. received. This provides the caller with a high level of flexibility.
# Kaspa Message Overview # Kaspa Message Overview
The kaspa protocol consists of exchanging messages between peers. Each The c4ex protocol consists of exchanging messages between peers. Each
message is preceded by a header which identifies information about it such as message is preceded by a header which identifies information about it such as
which kaspa network it is a part of, its type, how big it is, and a checksum which c4ex network it is a part of, its type, how big it is, and a checksum
to verify validity. All encoding and decoding of message headers is handled by to verify validity. All encoding and decoding of message headers is handled by
this package. this package.
To accomplish this, there is a generic interface for kaspa messages named To accomplish this, there is a generic interface for c4ex messages named
Message which allows messages of any type to be read, written, or passed around Message which allows messages of any type to be read, written, or passed around
through channels, functions, etc. In addition, concrete implementations of most through channels, functions, etc. In addition, concrete implementations of most
of the currently supported kaspa messages are provided. For these supported of the currently supported c4ex messages are provided. For these supported
messages, all of the details of marshalling and unmarshalling to and from the messages, all of the details of marshalling and unmarshalling to and from the
appmessage using kaspa encoding are handled so the caller doesn't have to concern appmessage using c4ex encoding are handled so the caller doesn't have to concern
themselves with the specifics. themselves with the specifics.
# Message Interaction # Message Interaction
The following provides a quick summary of how the kaspa messages are intended The following provides a quick summary of how the c4ex messages are intended
to interact with one another. As stated above, these interactions are not to interact with one another. As stated above, these interactions are not
directly handled by this package. directly handled by this package.
@ -48,7 +48,7 @@ interactions in no particular order.
# Common Parameters # Common Parameters
There are several common parameters that arise when using this package to read There are several common parameters that arise when using this package to read
and write kaspa messages. The following sections provide a quick overview of and write c4ex messages. The following sections provide a quick overview of
these parameters so the next sections can build on them. these parameters so the next sections can build on them.
# Protocol Version # Protocol Version
@ -62,8 +62,8 @@ negotiated.
# Kaspa Network # Kaspa Network
The kaspa network is a magic number which is used to identify the start of a The c4ex network is a magic number which is used to identify the start of a
message and which kaspa network the message applies to. This package provides message and which c4ex network the message applies to. This package provides
the following constants: the following constants:
appmessage.Mainnet appmessage.Mainnet
@ -73,8 +73,8 @@ the following constants:
# Determining Message Type # Determining Message Type
As discussed in the kaspa message overview section, this package reads As discussed in the c4ex message overview section, this package reads
and writes kaspa messages using a generic interface named Message. In and writes c4ex messages using a generic interface named Message. In
order to determine the actual concrete type of the message, use a type order to determine the actual concrete type of the message, use a type
switch or type assertion. An example of a type switch follows: switch or type assertion. An example of a type switch follows:
@ -91,33 +91,33 @@ switch or type assertion. An example of a type switch follows:
# Reading Messages # Reading Messages
In order to unmarshall kaspa messages from the appmessage, use the ReadMessage In order to unmarshall c4ex messages from the appmessage, use the ReadMessage
function. It accepts any io.Reader, but typically this will be a net.Conn to function. It accepts any io.Reader, but typically this will be a net.Conn to
a remote node running a kaspa peer. Example syntax is: a remote node running a c4ex peer. Example syntax is:
// Reads and validates the next kaspa message from conn using the // Reads and validates the next c4ex message from conn using the
// protocol version pver and the kaspa network kaspaNet. The returns // protocol version pver and the c4ex network c4exNet. The returns
// are a appmessage.Message, a []byte which contains the unmarshalled // are a appmessage.Message, a []byte which contains the unmarshalled
// raw payload, and a possible error. // raw payload, and a possible error.
msg, rawPayload, err := appmessage.ReadMessage(conn, pver, kaspaNet) msg, rawPayload, err := appmessage.ReadMessage(conn, pver, c4exNet)
if err != nil { if err != nil {
// Log and handle the error // Log and handle the error
} }
# Writing Messages # Writing Messages
In order to marshall kaspa messages to the appmessage, use the WriteMessage In order to marshall c4ex messages to the appmessage, use the WriteMessage
function. It accepts any io.Writer, but typically this will be a net.Conn to function. It accepts any io.Writer, but typically this will be a net.Conn to
a remote node running a kaspa peer. Example syntax to request addresses a remote node running a c4ex peer. Example syntax to request addresses
from a remote peer is: from a remote peer is:
// Create a new getaddr kaspa message. // Create a new getaddr c4ex message.
msg := appmessage.NewMsgRequestAddresses() msg := appmessage.NewMsgRequestAddresses()
// Writes a kaspa message msg to conn using the protocol version // Writes a c4ex message msg to conn using the protocol version
// pver, and the kaspa network kaspaNet. The return is a possible // pver, and the c4ex network c4exNet. The return is a possible
// error. // error.
err := appmessage.WriteMessage(conn, msg, pver, kaspaNet) err := appmessage.WriteMessage(conn, msg, pver, c4exNet)
if err != nil { if err != nil {
// Log and handle the error // Log and handle the error
} }

View File

@ -9,7 +9,7 @@ import (
) )
// MessageError describes an issue with a message. // MessageError describes an issue with a message.
// An example of some potential issues are messages from the wrong kaspa // An example of some potential issues are messages from the wrong c4ex
// network, invalid commands, mismatched checksums, and exceeding max payloads. // network, invalid commands, mismatched checksums, and exceeding max payloads.
// //
// This provides a mechanism for the caller to type assert the error to // This provides a mechanism for the caller to type assert the error to

View File

@ -27,7 +27,7 @@ func (cmd MessageCommand) String() string {
return fmt.Sprintf("%s [code %d]", cmdString, uint8(cmd)) return fmt.Sprintf("%s [code %d]", cmdString, uint8(cmd))
} }
// Commands used in kaspa message headers which describe the type of message. // Commands used in c4ex message headers which describe the type of message.
const ( const (
// protocol // protocol
CmdVersion MessageCommand = iota CmdVersion MessageCommand = iota
@ -302,7 +302,7 @@ var RPCMessageCommandToString = map[MessageCommand]string{
CmdGetCoinSupplyResponseMessage: "GetCoinSupplyResponse", CmdGetCoinSupplyResponseMessage: "GetCoinSupplyResponse",
} }
// Message is an interface that describes a kaspa message. A type that // Message is an interface that describes a c4ex message. A type that
// implements Message has complete control over the representation of its data // implements Message has complete control over the representation of its data
// and may therefore contain additional or fewer fields than those which // and may therefore contain additional or fewer fields than those which
// are used directly in the protocol encoded message. // are used directly in the protocol encoded message.

View File

@ -1,6 +1,6 @@
package appmessage package appmessage
// BlockHeadersMessage represents a kaspa BlockHeaders message // BlockHeadersMessage represents a c4ex BlockHeaders message
type BlockHeadersMessage struct { type BlockHeadersMessage struct {
baseMessage baseMessage
BlockHeaders []*MsgBlockHeader BlockHeaders []*MsgBlockHeader
@ -11,7 +11,7 @@ func (msg *BlockHeadersMessage) Command() MessageCommand {
return CmdBlockHeaders return CmdBlockHeaders
} }
// NewBlockHeadersMessage returns a new kaspa BlockHeaders message // NewBlockHeadersMessage returns a new c4ex BlockHeaders message
func NewBlockHeadersMessage(blockHeaders []*MsgBlockHeader) *BlockHeadersMessage { func NewBlockHeadersMessage(blockHeaders []*MsgBlockHeader) *BlockHeadersMessage {
return &BlockHeadersMessage{ return &BlockHeadersMessage{
BlockHeaders: blockHeaders, BlockHeaders: blockHeaders,

View File

@ -5,10 +5,10 @@
package appmessage package appmessage
// MaxAddressesPerMsg is the maximum number of addresses that can be in a single // MaxAddressesPerMsg is the maximum number of addresses that can be in a single
// kaspa Addresses message (MsgAddresses). // c4ex Addresses message (MsgAddresses).
const MaxAddressesPerMsg = 1000 const MaxAddressesPerMsg = 1000
// MsgAddresses implements the Message interface and represents a kaspa // MsgAddresses implements the Message interface and represents a c4ex
// Addresses message. // Addresses message.
type MsgAddresses struct { type MsgAddresses struct {
baseMessage baseMessage
@ -21,7 +21,7 @@ func (msg *MsgAddresses) Command() MessageCommand {
return CmdAddresses return CmdAddresses
} }
// NewMsgAddresses returns a new kaspa Addresses message that conforms to the // NewMsgAddresses returns a new c4ex Addresses message that conforms to the
// Message interface. See MsgAddresses for details. // Message interface. See MsgAddresses for details.
func NewMsgAddresses(addressList []*NetAddress) *MsgAddresses { func NewMsgAddresses(addressList []*NetAddress) *MsgAddresses {
return &MsgAddresses{ return &MsgAddresses{

View File

@ -22,7 +22,7 @@ type TxLoc struct {
TxLen int TxLen int
} }
// MsgBlock implements the Message interface and represents a kaspa // MsgBlock implements the Message interface and represents a c4ex
// block message. It is used to deliver block and transaction information in // block message. It is used to deliver block and transaction information in
// response to a getdata message (MsgGetData) for a given block hash. // response to a getdata message (MsgGetData) for a given block hash.
type MsgBlock struct { type MsgBlock struct {
@ -64,7 +64,7 @@ func (msg *MsgBlock) ConvertToPartial(subnetworkID *externalapi.DomainSubnetwork
} }
} }
// NewMsgBlock returns a new kaspa block message that conforms to the // NewMsgBlock returns a new c4ex block message that conforms to the
// Message interface. See MsgBlock for details. // Message interface. See MsgBlock for details.
func NewMsgBlock(blockHeader *MsgBlockHeader) *MsgBlock { func NewMsgBlock(blockHeader *MsgBlockHeader) *MsgBlock {
return &MsgBlock{ return &MsgBlock{

View File

@ -30,7 +30,7 @@ const MaxNumParentBlocks = 255
// BaseBlockHeaderPayload + up to MaxNumParentBlocks hashes of parent blocks // BaseBlockHeaderPayload + up to MaxNumParentBlocks hashes of parent blocks
const MaxBlockHeaderPayload = BaseBlockHeaderPayload + (MaxNumParentBlocks * externalapi.DomainHashSize) const MaxBlockHeaderPayload = BaseBlockHeaderPayload + (MaxNumParentBlocks * externalapi.DomainHashSize)
// MsgBlockHeader defines information about a block and is used in the kaspa // MsgBlockHeader defines information about a block and is used in the c4ex
// block (MsgBlock) and headers (MsgHeader) messages. // block (MsgBlock) and headers (MsgHeader) messages.
type MsgBlockHeader struct { type MsgBlockHeader struct {
baseMessage baseMessage

View File

@ -8,7 +8,7 @@ import (
// per message. // per message.
const MaxBlockLocatorsPerMsg = 500 const MaxBlockLocatorsPerMsg = 500
// MsgBlockLocator implements the Message interface and represents a kaspa // MsgBlockLocator implements the Message interface and represents a c4ex
// locator message. It is used to find the blockLocator of a peer that is // locator message. It is used to find the blockLocator of a peer that is
// syncing with you. // syncing with you.
type MsgBlockLocator struct { type MsgBlockLocator struct {
@ -22,7 +22,7 @@ func (msg *MsgBlockLocator) Command() MessageCommand {
return CmdBlockLocator return CmdBlockLocator
} }
// NewMsgBlockLocator returns a new kaspa locator message that conforms to // NewMsgBlockLocator returns a new c4ex locator message that conforms to
// the Message interface. See MsgBlockLocator for details. // the Message interface. See MsgBlockLocator for details.
func NewMsgBlockLocator(locatorHashes []*externalapi.DomainHash) *MsgBlockLocator { func NewMsgBlockLocator(locatorHashes []*externalapi.DomainHash) *MsgBlockLocator {
return &MsgBlockLocator{ return &MsgBlockLocator{

View File

@ -6,7 +6,7 @@ import (
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi" "github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
) )
// MsgBlockWithTrustedData represents a kaspa BlockWithTrustedData message // MsgBlockWithTrustedData represents a c4ex BlockWithTrustedData message
type MsgBlockWithTrustedData struct { type MsgBlockWithTrustedData struct {
baseMessage baseMessage

View File

@ -1,6 +1,6 @@
package appmessage package appmessage
// MsgBlockWithTrustedDataV4 represents a kaspa BlockWithTrustedDataV4 message // MsgBlockWithTrustedDataV4 represents a c4ex BlockWithTrustedDataV4 message
type MsgBlockWithTrustedDataV4 struct { type MsgBlockWithTrustedDataV4 struct {
baseMessage baseMessage

View File

@ -1,6 +1,6 @@
package appmessage package appmessage
// MsgDoneBlocksWithTrustedData implements the Message interface and represents a kaspa // MsgDoneBlocksWithTrustedData implements the Message interface and represents a c4ex
// DoneBlocksWithTrustedData message // DoneBlocksWithTrustedData message
// //
// This message has no payload. // This message has no payload.
@ -14,7 +14,7 @@ func (msg *MsgDoneBlocksWithTrustedData) Command() MessageCommand {
return CmdDoneBlocksWithTrustedData return CmdDoneBlocksWithTrustedData
} }
// NewMsgDoneBlocksWithTrustedData returns a new kaspa DoneBlocksWithTrustedData message that conforms to the // NewMsgDoneBlocksWithTrustedData returns a new c4ex DoneBlocksWithTrustedData message that conforms to the
// Message interface. // Message interface.
func NewMsgDoneBlocksWithTrustedData() *MsgDoneBlocksWithTrustedData { func NewMsgDoneBlocksWithTrustedData() *MsgDoneBlocksWithTrustedData {
return &MsgDoneBlocksWithTrustedData{} return &MsgDoneBlocksWithTrustedData{}

View File

@ -1,6 +1,6 @@
package appmessage package appmessage
// MsgDoneHeaders implements the Message interface and represents a kaspa // MsgDoneHeaders implements the Message interface and represents a c4ex
// DoneHeaders message. It is used to notify the IBD syncing peer that the // DoneHeaders message. It is used to notify the IBD syncing peer that the
// syncer sent all the requested headers. // syncer sent all the requested headers.
// //
@ -15,7 +15,7 @@ func (msg *MsgDoneHeaders) Command() MessageCommand {
return CmdDoneHeaders return CmdDoneHeaders
} }
// NewMsgDoneHeaders returns a new kaspa DoneIBDBlocks message that conforms to the // NewMsgDoneHeaders returns a new c4ex DoneIBDBlocks message that conforms to the
// Message interface. // Message interface.
func NewMsgDoneHeaders() *MsgDoneHeaders { func NewMsgDoneHeaders() *MsgDoneHeaders {
return &MsgDoneHeaders{} return &MsgDoneHeaders{}

View File

@ -1,6 +1,6 @@
package appmessage package appmessage
// MsgDonePruningPointUTXOSetChunks represents a kaspa DonePruningPointUTXOSetChunks message // MsgDonePruningPointUTXOSetChunks represents a c4ex DonePruningPointUTXOSetChunks message
type MsgDonePruningPointUTXOSetChunks struct { type MsgDonePruningPointUTXOSetChunks struct {
baseMessage baseMessage
} }

View File

@ -1,6 +1,6 @@
package appmessage package appmessage
// MsgRequestPruningPointAndItsAnticone represents a kaspa RequestPruningPointAndItsAnticone message // MsgRequestPruningPointAndItsAnticone represents a c4ex RequestPruningPointAndItsAnticone message
type MsgRequestPruningPointAndItsAnticone struct { type MsgRequestPruningPointAndItsAnticone struct {
baseMessage baseMessage
} }

View File

@ -4,7 +4,7 @@
package appmessage package appmessage
// MsgIBDBlock implements the Message interface and represents a kaspa // MsgIBDBlock implements the Message interface and represents a c4ex
// ibdblock message. It is used to deliver block and transaction information in // ibdblock message. It is used to deliver block and transaction information in
// response to a RequestIBDBlocks message (MsgRequestIBDBlocks). // response to a RequestIBDBlocks message (MsgRequestIBDBlocks).
type MsgIBDBlock struct { type MsgIBDBlock struct {
@ -24,7 +24,7 @@ func (msg *MsgIBDBlock) MaxPayloadLength(pver uint32) uint32 {
return MaxMessagePayload return MaxMessagePayload
} }
// NewMsgIBDBlock returns a new kaspa ibdblock message that conforms to the // NewMsgIBDBlock returns a new c4ex ibdblock message that conforms to the
// Message interface. See MsgIBDBlock for details. // Message interface. See MsgIBDBlock for details.
func NewMsgIBDBlock(msgBlock *MsgBlock) *MsgIBDBlock { func NewMsgIBDBlock(msgBlock *MsgBlock) *MsgIBDBlock {
return &MsgIBDBlock{MsgBlock: msgBlock} return &MsgIBDBlock{MsgBlock: msgBlock}

View File

@ -4,7 +4,7 @@ import (
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi" "github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
) )
// MsgIBDBlockLocator represents a kaspa ibdBlockLocator message // MsgIBDBlockLocator represents a c4ex ibdBlockLocator message
type MsgIBDBlockLocator struct { type MsgIBDBlockLocator struct {
baseMessage baseMessage
TargetHash *externalapi.DomainHash TargetHash *externalapi.DomainHash
@ -16,7 +16,7 @@ func (msg *MsgIBDBlockLocator) Command() MessageCommand {
return CmdIBDBlockLocator return CmdIBDBlockLocator
} }
// NewMsgIBDBlockLocator returns a new kaspa ibdBlockLocator message // NewMsgIBDBlockLocator returns a new c4ex ibdBlockLocator message
func NewMsgIBDBlockLocator(targetHash *externalapi.DomainHash, func NewMsgIBDBlockLocator(targetHash *externalapi.DomainHash,
blockLocatorHashes []*externalapi.DomainHash) *MsgIBDBlockLocator { blockLocatorHashes []*externalapi.DomainHash) *MsgIBDBlockLocator {

View File

@ -4,7 +4,7 @@ import (
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi" "github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
) )
// MsgIBDBlockLocatorHighestHash represents a kaspa BlockLocatorHighestHash message // MsgIBDBlockLocatorHighestHash represents a c4ex BlockLocatorHighestHash message
type MsgIBDBlockLocatorHighestHash struct { type MsgIBDBlockLocatorHighestHash struct {
baseMessage baseMessage
HighestHash *externalapi.DomainHash HighestHash *externalapi.DomainHash

View File

@ -1,6 +1,6 @@
package appmessage package appmessage
// MsgIBDBlockLocatorHighestHashNotFound represents a kaspa BlockLocatorHighestHashNotFound message // MsgIBDBlockLocatorHighestHashNotFound represents a c4ex BlockLocatorHighestHashNotFound message
type MsgIBDBlockLocatorHighestHashNotFound struct { type MsgIBDBlockLocatorHighestHashNotFound struct {
baseMessage baseMessage
} }

View File

@ -4,7 +4,7 @@ import (
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi" "github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
) )
// MsgIBDChainBlockLocator implements the Message interface and represents a kaspa // MsgIBDChainBlockLocator implements the Message interface and represents a c4ex
// locator message. It is used to find the blockLocator of a peer that is // locator message. It is used to find the blockLocator of a peer that is
// syncing with you. // syncing with you.
type MsgIBDChainBlockLocator struct { type MsgIBDChainBlockLocator struct {
@ -18,7 +18,7 @@ func (msg *MsgIBDChainBlockLocator) Command() MessageCommand {
return CmdIBDChainBlockLocator return CmdIBDChainBlockLocator
} }
// NewMsgIBDChainBlockLocator returns a new kaspa locator message that conforms to // NewMsgIBDChainBlockLocator returns a new c4ex locator message that conforms to
// the Message interface. See MsgBlockLocator for details. // the Message interface. See MsgBlockLocator for details.
func NewMsgIBDChainBlockLocator(locatorHashes []*externalapi.DomainHash) *MsgIBDChainBlockLocator { func NewMsgIBDChainBlockLocator(locatorHashes []*externalapi.DomainHash) *MsgIBDChainBlockLocator {
return &MsgIBDChainBlockLocator{ return &MsgIBDChainBlockLocator{

View File

@ -4,7 +4,7 @@ import (
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi" "github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
) )
// MsgInvRelayBlock implements the Message interface and represents a kaspa // MsgInvRelayBlock implements the Message interface and represents a c4ex
// block inventory message. It is used to notify the network about new block // block inventory message. It is used to notify the network about new block
// by sending their hash, and let the receiving node decide if it needs it. // by sending their hash, and let the receiving node decide if it needs it.
type MsgInvRelayBlock struct { type MsgInvRelayBlock struct {
@ -18,7 +18,7 @@ func (msg *MsgInvRelayBlock) Command() MessageCommand {
return CmdInvRelayBlock return CmdInvRelayBlock
} }
// NewMsgInvBlock returns a new kaspa invrelblk message that conforms to // NewMsgInvBlock returns a new c4ex invrelblk message that conforms to
// the Message interface. See MsgInvRelayBlock for details. // the Message interface. See MsgInvRelayBlock for details.
func NewMsgInvBlock(hash *externalapi.DomainHash) *MsgInvRelayBlock { func NewMsgInvBlock(hash *externalapi.DomainHash) *MsgInvRelayBlock {
return &MsgInvRelayBlock{ return &MsgInvRelayBlock{

View File

@ -8,7 +8,7 @@ import (
// be in a single CmdInvTransaction message. // be in a single CmdInvTransaction message.
const MaxInvPerTxInvMsg = MaxInvPerMsg const MaxInvPerTxInvMsg = MaxInvPerMsg
// MsgInvTransaction implements the Message interface and represents a kaspa // MsgInvTransaction implements the Message interface and represents a c4ex
// TxInv message. It is used to notify the network about new transactions // TxInv message. It is used to notify the network about new transactions
// by sending their ID, and let the receiving node decide if it needs it. // by sending their ID, and let the receiving node decide if it needs it.
type MsgInvTransaction struct { type MsgInvTransaction struct {
@ -22,7 +22,7 @@ func (msg *MsgInvTransaction) Command() MessageCommand {
return CmdInvTransaction return CmdInvTransaction
} }
// NewMsgInvTransaction returns a new kaspa TxInv message that conforms to // NewMsgInvTransaction returns a new c4ex TxInv message that conforms to
// the Message interface. See MsgInvTransaction for details. // the Message interface. See MsgInvTransaction for details.
func NewMsgInvTransaction(ids []*externalapi.DomainTransactionID) *MsgInvTransaction { func NewMsgInvTransaction(ids []*externalapi.DomainTransactionID) *MsgInvTransaction {
return &MsgInvTransaction{ return &MsgInvTransaction{

View File

@ -4,7 +4,7 @@
package appmessage package appmessage
// MsgPing implements the Message interface and represents a kaspa ping // MsgPing implements the Message interface and represents a c4ex ping
// message. // message.
// //
// For versions BIP0031Version and earlier, it is used primarily to confirm // For versions BIP0031Version and earlier, it is used primarily to confirm
@ -28,7 +28,7 @@ func (msg *MsgPing) Command() MessageCommand {
return CmdPing return CmdPing
} }
// NewMsgPing returns a new kaspa ping message that conforms to the Message // NewMsgPing returns a new c4ex ping message that conforms to the Message
// interface. See MsgPing for details. // interface. See MsgPing for details.
func NewMsgPing(nonce uint64) *MsgPing { func NewMsgPing(nonce uint64) *MsgPing {
return &MsgPing{ return &MsgPing{

View File

@ -4,9 +4,9 @@
package appmessage package appmessage
// MsgPong implements the Message interface and represents a kaspa pong // MsgPong implements the Message interface and represents a c4ex pong
// message which is used primarily to confirm that a connection is still valid // message which is used primarily to confirm that a connection is still valid
// in response to a kaspa ping message (MsgPing). // in response to a c4ex ping message (MsgPing).
// //
// This message was not added until protocol versions AFTER BIP0031Version. // This message was not added until protocol versions AFTER BIP0031Version.
type MsgPong struct { type MsgPong struct {
@ -22,7 +22,7 @@ func (msg *MsgPong) Command() MessageCommand {
return CmdPong return CmdPong
} }
// NewMsgPong returns a new kaspa pong message that conforms to the Message // NewMsgPong returns a new c4ex pong message that conforms to the Message
// interface. See MsgPong for details. // interface. See MsgPong for details.
func NewMsgPong(nonce uint64) *MsgPong { func NewMsgPong(nonce uint64) *MsgPong {
return &MsgPong{ return &MsgPong{

View File

@ -1,6 +1,6 @@
package appmessage package appmessage
// MsgPruningPointProof represents a kaspa PruningPointProof message // MsgPruningPointProof represents a c4ex PruningPointProof message
type MsgPruningPointProof struct { type MsgPruningPointProof struct {
baseMessage baseMessage

View File

@ -1,6 +1,6 @@
package appmessage package appmessage
// MsgPruningPoints represents a kaspa PruningPoints message // MsgPruningPoints represents a c4ex PruningPoints message
type MsgPruningPoints struct { type MsgPruningPoints struct {
baseMessage baseMessage

View File

@ -2,7 +2,7 @@ package appmessage
import "github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi" import "github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
// MsgPruningPointUTXOSetChunk represents a kaspa PruningPointUTXOSetChunk message // MsgPruningPointUTXOSetChunk represents a c4ex PruningPointUTXOSetChunk message
type MsgPruningPointUTXOSetChunk struct { type MsgPruningPointUTXOSetChunk struct {
baseMessage baseMessage
OutpointAndUTXOEntryPairs []*OutpointAndUTXOEntryPair OutpointAndUTXOEntryPairs []*OutpointAndUTXOEntryPair

View File

@ -1,6 +1,6 @@
package appmessage package appmessage
// MsgReject implements the Message interface and represents a kaspa // MsgReject implements the Message interface and represents a c4ex
// Reject message. It is used to notify peers why they are banned. // Reject message. It is used to notify peers why they are banned.
type MsgReject struct { type MsgReject struct {
baseMessage baseMessage
@ -13,7 +13,7 @@ func (msg *MsgReject) Command() MessageCommand {
return CmdReject return CmdReject
} }
// NewMsgReject returns a new kaspa Reject message that conforms to the // NewMsgReject returns a new c4ex Reject message that conforms to the
// Message interface. // Message interface.
func NewMsgReject(reason string) *MsgReject { func NewMsgReject(reason string) *MsgReject {
return &MsgReject{ return &MsgReject{

View File

@ -8,7 +8,7 @@ import (
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi" "github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
) )
// MsgRequestAddresses implements the Message interface and represents a kaspa // MsgRequestAddresses implements the Message interface and represents a c4ex
// RequestAddresses message. It is used to request a list of known active peers on the // RequestAddresses message. It is used to request a list of known active peers on the
// network from a peer to help identify potential nodes. The list is returned // network from a peer to help identify potential nodes. The list is returned
// via one or more addr messages (MsgAddresses). // via one or more addr messages (MsgAddresses).
@ -26,7 +26,7 @@ func (msg *MsgRequestAddresses) Command() MessageCommand {
return CmdRequestAddresses return CmdRequestAddresses
} }
// NewMsgRequestAddresses returns a new kaspa RequestAddresses message that conforms to the // NewMsgRequestAddresses returns a new c4ex RequestAddresses message that conforms to the
// Message interface. See MsgRequestAddresses for details. // Message interface. See MsgRequestAddresses for details.
func NewMsgRequestAddresses(includeAllSubnetworks bool, subnetworkID *externalapi.DomainSubnetworkID) *MsgRequestAddresses { func NewMsgRequestAddresses(includeAllSubnetworks bool, subnetworkID *externalapi.DomainSubnetworkID) *MsgRequestAddresses {
return &MsgRequestAddresses{ return &MsgRequestAddresses{

View File

@ -8,7 +8,7 @@ import (
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi" "github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
) )
// MsgRequestAnticone implements the Message interface and represents a kaspa // MsgRequestAnticone implements the Message interface and represents a c4ex
// RequestHeaders message. It is used to request the set past(ContextHash) \cap anticone(BlockHash) // RequestHeaders message. It is used to request the set past(ContextHash) \cap anticone(BlockHash)
type MsgRequestAnticone struct { type MsgRequestAnticone struct {
baseMessage baseMessage
@ -22,7 +22,7 @@ func (msg *MsgRequestAnticone) Command() MessageCommand {
return CmdRequestAnticone return CmdRequestAnticone
} }
// NewMsgRequestAnticone returns a new kaspa RequestPastDiff message that conforms to the // NewMsgRequestAnticone returns a new c4ex RequestPastDiff message that conforms to the
// Message interface using the passed parameters and defaults for the remaining // Message interface using the passed parameters and defaults for the remaining
// fields. // fields.
func NewMsgRequestAnticone(blockHash, contextHash *externalapi.DomainHash) *MsgRequestAnticone { func NewMsgRequestAnticone(blockHash, contextHash *externalapi.DomainHash) *MsgRequestAnticone {

View File

@ -4,7 +4,7 @@ import (
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi" "github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
) )
// MsgRequestBlockLocator implements the Message interface and represents a kaspa // MsgRequestBlockLocator implements the Message interface and represents a c4ex
// RequestBlockLocator message. It is used to request a block locator between low // RequestBlockLocator message. It is used to request a block locator between low
// and high hash. // and high hash.
// The locator is returned via a locator message (MsgBlockLocator). // The locator is returned via a locator message (MsgBlockLocator).

View File

@ -8,7 +8,7 @@ import (
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi" "github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
) )
// MsgRequestHeaders implements the Message interface and represents a kaspa // MsgRequestHeaders implements the Message interface and represents a c4ex
// RequestHeaders message. It is used to request a list of blocks starting after the // RequestHeaders message. It is used to request a list of blocks starting after the
// low hash and until the high hash. // low hash and until the high hash.
type MsgRequestHeaders struct { type MsgRequestHeaders struct {
@ -23,7 +23,7 @@ func (msg *MsgRequestHeaders) Command() MessageCommand {
return CmdRequestHeaders return CmdRequestHeaders
} }
// NewMsgRequstHeaders returns a new kaspa RequestHeaders message that conforms to the // NewMsgRequstHeaders returns a new c4ex RequestHeaders message that conforms to the
// Message interface using the passed parameters and defaults for the remaining // Message interface using the passed parameters and defaults for the remaining
// fields. // fields.
func NewMsgRequstHeaders(lowHash, highHash *externalapi.DomainHash) *MsgRequestHeaders { func NewMsgRequstHeaders(lowHash, highHash *externalapi.DomainHash) *MsgRequestHeaders {

View File

@ -4,7 +4,7 @@ import (
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi" "github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
) )
// MsgRequestIBDBlocks implements the Message interface and represents a kaspa // MsgRequestIBDBlocks implements the Message interface and represents a c4ex
// RequestIBDBlocks message. It is used to request blocks as part of the IBD // RequestIBDBlocks message. It is used to request blocks as part of the IBD
// protocol. // protocol.
type MsgRequestIBDBlocks struct { type MsgRequestIBDBlocks struct {

View File

@ -4,7 +4,7 @@ import (
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi" "github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
) )
// MsgRequestIBDChainBlockLocator implements the Message interface and represents a kaspa // MsgRequestIBDChainBlockLocator implements the Message interface and represents a c4ex
// IBDRequestChainBlockLocator message. It is used to request a block locator between low // IBDRequestChainBlockLocator message. It is used to request a block locator between low
// and high hash. // and high hash.
// The locator is returned via a locator message (MsgIBDChainBlockLocator). // The locator is returned via a locator message (MsgIBDChainBlockLocator).

View File

@ -1,6 +1,6 @@
package appmessage package appmessage
// MsgRequestNextHeaders implements the Message interface and represents a kaspa // MsgRequestNextHeaders implements the Message interface and represents a c4ex
// RequestNextHeaders message. It is used to notify the IBD syncer peer to send // RequestNextHeaders message. It is used to notify the IBD syncer peer to send
// more headers. // more headers.
// //
@ -15,7 +15,7 @@ func (msg *MsgRequestNextHeaders) Command() MessageCommand {
return CmdRequestNextHeaders return CmdRequestNextHeaders
} }
// NewMsgRequestNextHeaders returns a new kaspa RequestNextHeaders message that conforms to the // NewMsgRequestNextHeaders returns a new c4ex RequestNextHeaders message that conforms to the
// Message interface. // Message interface.
func NewMsgRequestNextHeaders() *MsgRequestNextHeaders { func NewMsgRequestNextHeaders() *MsgRequestNextHeaders {
return &MsgRequestNextHeaders{} return &MsgRequestNextHeaders{}

View File

@ -1,6 +1,6 @@
package appmessage package appmessage
// MsgRequestNextPruningPointAndItsAnticoneBlocks implements the Message interface and represents a kaspa // MsgRequestNextPruningPointAndItsAnticoneBlocks implements the Message interface and represents a c4ex
// RequestNextPruningPointAndItsAnticoneBlocks message. It is used to notify the IBD syncer peer to send // RequestNextPruningPointAndItsAnticoneBlocks message. It is used to notify the IBD syncer peer to send
// more blocks from the pruning anticone. // more blocks from the pruning anticone.
// //
@ -15,7 +15,7 @@ func (msg *MsgRequestNextPruningPointAndItsAnticoneBlocks) Command() MessageComm
return CmdRequestNextPruningPointAndItsAnticoneBlocks return CmdRequestNextPruningPointAndItsAnticoneBlocks
} }
// NewMsgRequestNextPruningPointAndItsAnticoneBlocks returns a new kaspa RequestNextPruningPointAndItsAnticoneBlocks message that conforms to the // NewMsgRequestNextPruningPointAndItsAnticoneBlocks returns a new c4ex RequestNextPruningPointAndItsAnticoneBlocks message that conforms to the
// Message interface. // Message interface.
func NewMsgRequestNextPruningPointAndItsAnticoneBlocks() *MsgRequestNextPruningPointAndItsAnticoneBlocks { func NewMsgRequestNextPruningPointAndItsAnticoneBlocks() *MsgRequestNextPruningPointAndItsAnticoneBlocks {
return &MsgRequestNextPruningPointAndItsAnticoneBlocks{} return &MsgRequestNextPruningPointAndItsAnticoneBlocks{}

View File

@ -1,6 +1,6 @@
package appmessage package appmessage
// MsgRequestNextPruningPointUTXOSetChunk represents a kaspa RequestNextPruningPointUTXOSetChunk message // MsgRequestNextPruningPointUTXOSetChunk represents a c4ex RequestNextPruningPointUTXOSetChunk message
type MsgRequestNextPruningPointUTXOSetChunk struct { type MsgRequestNextPruningPointUTXOSetChunk struct {
baseMessage baseMessage
} }

View File

@ -1,6 +1,6 @@
package appmessage package appmessage
// MsgRequestPruningPointProof represents a kaspa RequestPruningPointProof message // MsgRequestPruningPointProof represents a c4ex RequestPruningPointProof message
type MsgRequestPruningPointProof struct { type MsgRequestPruningPointProof struct {
baseMessage baseMessage
} }

View File

@ -4,7 +4,7 @@ import (
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi" "github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
) )
// MsgRequestPruningPointUTXOSet represents a kaspa RequestPruningPointUTXOSet message // MsgRequestPruningPointUTXOSet represents a c4ex RequestPruningPointUTXOSet message
type MsgRequestPruningPointUTXOSet struct { type MsgRequestPruningPointUTXOSet struct {
baseMessage baseMessage
PruningPointHash *externalapi.DomainHash PruningPointHash *externalapi.DomainHash

View File

@ -8,7 +8,7 @@ import (
// be in a single RequestRelayBlocks message. // be in a single RequestRelayBlocks message.
const MaxRequestRelayBlocksHashes = MaxInvPerMsg const MaxRequestRelayBlocksHashes = MaxInvPerMsg
// MsgRequestRelayBlocks implements the Message interface and represents a kaspa // MsgRequestRelayBlocks implements the Message interface and represents a c4ex
// RequestRelayBlocks message. It is used to request blocks as part of the block // RequestRelayBlocks message. It is used to request blocks as part of the block
// relay protocol. // relay protocol.
type MsgRequestRelayBlocks struct { type MsgRequestRelayBlocks struct {
@ -22,7 +22,7 @@ func (msg *MsgRequestRelayBlocks) Command() MessageCommand {
return CmdRequestRelayBlocks return CmdRequestRelayBlocks
} }
// NewMsgRequestRelayBlocks returns a new kaspa RequestRelayBlocks message that conforms to // NewMsgRequestRelayBlocks returns a new c4ex RequestRelayBlocks message that conforms to
// the Message interface. See MsgRequestRelayBlocks for details. // the Message interface. See MsgRequestRelayBlocks for details.
func NewMsgRequestRelayBlocks(hashes []*externalapi.DomainHash) *MsgRequestRelayBlocks { func NewMsgRequestRelayBlocks(hashes []*externalapi.DomainHash) *MsgRequestRelayBlocks {
return &MsgRequestRelayBlocks{ return &MsgRequestRelayBlocks{

View File

@ -8,7 +8,7 @@ import (
// be in a single CmdInvTransaction message. // be in a single CmdInvTransaction message.
const MaxInvPerRequestTransactionsMsg = MaxInvPerMsg const MaxInvPerRequestTransactionsMsg = MaxInvPerMsg
// MsgRequestTransactions implements the Message interface and represents a kaspa // MsgRequestTransactions implements the Message interface and represents a c4ex
// RequestTransactions message. It is used to request transactions as part of the // RequestTransactions message. It is used to request transactions as part of the
// transactions relay protocol. // transactions relay protocol.
type MsgRequestTransactions struct { type MsgRequestTransactions struct {
@ -22,7 +22,7 @@ func (msg *MsgRequestTransactions) Command() MessageCommand {
return CmdRequestTransactions return CmdRequestTransactions
} }
// NewMsgRequestTransactions returns a new kaspa RequestTransactions message that conforms to // NewMsgRequestTransactions returns a new c4ex RequestTransactions message that conforms to
// the Message interface. See MsgRequestTransactions for details. // the Message interface. See MsgRequestTransactions for details.
func NewMsgRequestTransactions(ids []*externalapi.DomainTransactionID) *MsgRequestTransactions { func NewMsgRequestTransactions(ids []*externalapi.DomainTransactionID) *MsgRequestTransactions {
return &MsgRequestTransactions{ return &MsgRequestTransactions{

View File

@ -8,7 +8,7 @@ import (
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi" "github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
) )
// MsgTransactionNotFound defines a kaspa TransactionNotFound message which is sent in response to // MsgTransactionNotFound defines a c4ex TransactionNotFound message which is sent in response to
// a RequestTransactions message if any of the requested data in not available on the peer. // a RequestTransactions message if any of the requested data in not available on the peer.
type MsgTransactionNotFound struct { type MsgTransactionNotFound struct {
baseMessage baseMessage
@ -21,7 +21,7 @@ func (msg *MsgTransactionNotFound) Command() MessageCommand {
return CmdTransactionNotFound return CmdTransactionNotFound
} }
// NewMsgTransactionNotFound returns a new kaspa transactionsnotfound message that conforms to the // NewMsgTransactionNotFound returns a new c4ex transactionsnotfound message that conforms to the
// Message interface. See MsgTransactionNotFound for details. // Message interface. See MsgTransactionNotFound for details.
func NewMsgTransactionNotFound(id *externalapi.DomainTransactionID) *MsgTransactionNotFound { func NewMsgTransactionNotFound(id *externalapi.DomainTransactionID) *MsgTransactionNotFound {
return &MsgTransactionNotFound{ return &MsgTransactionNotFound{

View File

@ -1,6 +1,6 @@
package appmessage package appmessage
// MsgTrustedData represents a kaspa TrustedData message // MsgTrustedData represents a c4ex TrustedData message
type MsgTrustedData struct { type MsgTrustedData struct {
baseMessage baseMessage

View File

@ -54,14 +54,14 @@ const (
minTxPayload = 10 minTxPayload = 10
) )
// Outpoint defines a kaspa data type that is used to track previous // Outpoint defines a c4ex data type that is used to track previous
// transaction outputs. // transaction outputs.
type Outpoint struct { type Outpoint struct {
TxID externalapi.DomainTransactionID TxID externalapi.DomainTransactionID
Index uint32 Index uint32
} }
// NewOutpoint returns a new kaspa transaction outpoint point with the // NewOutpoint returns a new c4ex transaction outpoint point with the
// provided hash and index. // provided hash and index.
func NewOutpoint(txID *externalapi.DomainTransactionID, index uint32) *Outpoint { func NewOutpoint(txID *externalapi.DomainTransactionID, index uint32) *Outpoint {
return &Outpoint{ return &Outpoint{
@ -85,7 +85,7 @@ func (o Outpoint) String() string {
return string(buf) return string(buf)
} }
// TxIn defines a kaspa transaction input. // TxIn defines a c4ex transaction input.
type TxIn struct { type TxIn struct {
PreviousOutpoint Outpoint PreviousOutpoint Outpoint
SignatureScript []byte SignatureScript []byte
@ -93,7 +93,7 @@ type TxIn struct {
SigOpCount byte SigOpCount byte
} }
// NewTxIn returns a new kaspa transaction input with the provided // NewTxIn returns a new c4ex transaction input with the provided
// previous outpoint point and signature script with a default sequence of // previous outpoint point and signature script with a default sequence of
// MaxTxInSequenceNum. // MaxTxInSequenceNum.
func NewTxIn(prevOut *Outpoint, signatureScript []byte, sequence uint64, sigOpCount byte) *TxIn { func NewTxIn(prevOut *Outpoint, signatureScript []byte, sequence uint64, sigOpCount byte) *TxIn {
@ -105,13 +105,13 @@ func NewTxIn(prevOut *Outpoint, signatureScript []byte, sequence uint64, sigOpCo
} }
} }
// TxOut defines a kaspa transaction output. // TxOut defines a c4ex transaction output.
type TxOut struct { type TxOut struct {
Value uint64 Value uint64
ScriptPubKey *externalapi.ScriptPublicKey ScriptPubKey *externalapi.ScriptPublicKey
} }
// NewTxOut returns a new kaspa transaction output with the provided // NewTxOut returns a new c4ex transaction output with the provided
// transaction value and public key script. // transaction value and public key script.
func NewTxOut(value uint64, scriptPubKey *externalapi.ScriptPublicKey) *TxOut { func NewTxOut(value uint64, scriptPubKey *externalapi.ScriptPublicKey) *TxOut {
return &TxOut{ return &TxOut{
@ -120,7 +120,7 @@ func NewTxOut(value uint64, scriptPubKey *externalapi.ScriptPublicKey) *TxOut {
} }
} }
// MsgTx implements the Message interface and represents a kaspa tx message. // MsgTx implements the Message interface and represents a c4ex tx message.
// It is used to deliver transaction information in response to a getdata // It is used to deliver transaction information in response to a getdata
// message (MsgGetData) for a given transaction. // message (MsgGetData) for a given transaction.
// //

View File

@ -4,7 +4,7 @@
package appmessage package appmessage
// MsgVerAck defines a kaspa verack message which is used for a peer to // MsgVerAck defines a c4ex verack message which is used for a peer to
// acknowledge a version message (MsgVersion) after it has used the information // acknowledge a version message (MsgVersion) after it has used the information
// to negotiate parameters. It implements the Message interface. // to negotiate parameters. It implements the Message interface.
// //
@ -19,7 +19,7 @@ func (msg *MsgVerAck) Command() MessageCommand {
return CmdVerAck return CmdVerAck
} }
// NewMsgVerAck returns a new kaspa verack message that conforms to the // NewMsgVerAck returns a new c4ex verack message that conforms to the
// Message interface. // Message interface.
func NewMsgVerAck() *MsgVerAck { func NewMsgVerAck() *MsgVerAck {
return &MsgVerAck{} return &MsgVerAck{}

View File

@ -20,9 +20,9 @@ import (
const MaxUserAgentLen = 256 const MaxUserAgentLen = 256
// DefaultUserAgent for appmessage in the stack // DefaultUserAgent for appmessage in the stack
var DefaultUserAgent = fmt.Sprintf("/kaspad:%s/", version.Version()) var DefaultUserAgent = fmt.Sprintf("/c4exd:%s/", version.Version())
// MsgVersion implements the Message interface and represents a kaspa version // MsgVersion implements the Message interface and represents a c4ex version
// message. It is used for a peer to advertise itself as soon as an outbound // message. It is used for a peer to advertise itself as soon as an outbound
// connection is made. The remote peer then uses this information along with // connection is made. The remote peer then uses this information along with
// its own to negotiate. The remote peer must then respond with a version // its own to negotiate. The remote peer must then respond with a version
@ -78,7 +78,7 @@ func (msg *MsgVersion) Command() MessageCommand {
return CmdVersion return CmdVersion
} }
// NewMsgVersion returns a new kaspa version message that conforms to the // NewMsgVersion returns a new c4ex version message that conforms to the
// Message interface using the passed parameters and defaults for the remaining // Message interface using the passed parameters and defaults for the remaining
// fields. // fields.
func NewMsgVersion(addr *NetAddress, id *id.ID, network string, func NewMsgVersion(addr *NetAddress, id *id.ID, network string,

View File

@ -1,6 +1,6 @@
package appmessage package appmessage
// MsgReady implements the Message interface and represents a kaspa // MsgReady implements the Message interface and represents a c4ex
// Ready message. It is used to notify that the peer is ready to receive // Ready message. It is used to notify that the peer is ready to receive
// messages. // messages.
// //
@ -15,7 +15,7 @@ func (msg *MsgReady) Command() MessageCommand {
return CmdReady return CmdReady
} }
// NewMsgReady returns a new kaspa Ready message that conforms to the // NewMsgReady returns a new c4ex Ready message that conforms to the
// Message interface. // Message interface.
func NewMsgReady() *MsgReady { func NewMsgReady() *MsgReady {
return &MsgReady{} return &MsgReady{}

View File

@ -1,6 +1,6 @@
package appmessage package appmessage
// MsgUnexpectedPruningPoint represents a kaspa UnexpectedPruningPoint message // MsgUnexpectedPruningPoint represents a c4ex UnexpectedPruningPoint message
type MsgUnexpectedPruningPoint struct { type MsgUnexpectedPruningPoint struct {
baseMessage baseMessage
} }
@ -10,7 +10,7 @@ func (msg *MsgUnexpectedPruningPoint) Command() MessageCommand {
return CmdUnexpectedPruningPoint return CmdUnexpectedPruningPoint
} }
// NewMsgUnexpectedPruningPoint returns a new kaspa UnexpectedPruningPoint message // NewMsgUnexpectedPruningPoint returns a new c4ex UnexpectedPruningPoint message
func NewMsgUnexpectedPruningPoint() *MsgUnexpectedPruningPoint { func NewMsgUnexpectedPruningPoint() *MsgUnexpectedPruningPoint {
return &MsgUnexpectedPruningPoint{} return &MsgUnexpectedPruningPoint{}
} }

View File

@ -18,13 +18,13 @@ const (
DefaultServices = SFNodeNetwork | SFNodeBloom | SFNodeCF DefaultServices = SFNodeNetwork | SFNodeBloom | SFNodeCF
) )
// ServiceFlag identifies services supported by a kaspa peer. // ServiceFlag identifies services supported by a c4ex peer.
// ServiceFlag는 kaspa 피어가 지원하는 서비스를 식별합니다. // ServiceFlag는 c4ex 피어가 지원하는 서비스를 식별합니다.
type ServiceFlag uint64 type ServiceFlag uint64
const ( const (
// SFNodeNetwork is a flag used to indicate a peer is a full node. // SFNodeNetwork is a flag used to indicate a peer is a full node.
// ServiceFlag는 kaspa 액세서리가 지원하는 서비스를 정의합니다. // ServiceFlag는 c4ex 액세서리가 지원하는 서비스를 정의합니다.
SFNodeNetwork ServiceFlag = 1 << iota SFNodeNetwork ServiceFlag = 1 << iota
// SFNodeGetUTXO is a flag used to indicate a peer supports the // SFNodeGetUTXO is a flag used to indicate a peer supports the
@ -106,21 +106,21 @@ func (f ServiceFlag) String() string {
return s return s
} }
// C4exNet represents which kaspa network a message belongs to. // C4exNet represents which c4ex network a message belongs to.
// C4exNet은 메시지가 속한 Kaspa 네트워크를 나타냅니다. // C4exNet은 메시지가 속한 Kaspa 네트워크를 나타냅니다.
type C4exNet uint32 type C4exNet uint32
// Constants used to indicate the message kaspa network. They can also be // Constants used to indicate the message c4ex network. They can also be
// used to seek to the next message when a stream's state is unknown, but // used to seek to the next message when a stream's state is unknown, but
// this package does not provide that functionality since it's generally a // this package does not provide that functionality since it's generally a
// better idea to simply disconnect clients that are misbehaving over TCP. // better idea to simply disconnect clients that are misbehaving over TCP.
// 메시지 kaspa 네트워크를 나타내는 데 사용되는 상수입니다. 그들은 또한 // 메시지 c4ex 네트워크를 나타내는 데 사용되는 상수입니다. 그들은 또한
// 스트림 상태를 알 수 없을 때 다음 메시지를 찾는 데 사용되지만, // 스트림 상태를 알 수 없을 때 다음 메시지를 찾는 데 사용되지만,
// 이 패키지는 일반적으로 다음과 같은 기능을 제공하므로 해당 기능을 제공하지 않습니다. // 이 패키지는 일반적으로 다음과 같은 기능을 제공하므로 해당 기능을 제공하지 않습니다.
// TCP를 통해 오작동하는 클라이언트의 연결을 끊는 것이 더 나은 아이디어입니다. // TCP를 통해 오작동하는 클라이언트의 연결을 끊는 것이 더 나은 아이디어입니다.
const ( const (
// Mainnet represents the main kaspa network. // Mainnet represents the main c4ex network.
// 메인넷은 주요 kaspa 네트워크를 나타냅니다. // 메인넷은 주요 c4ex 네트워크를 나타냅니다.
Mainnet C4exNet = 0x3ddcf71d Mainnet C4exNet = 0x3ddcf71d
// Testnet represents the test network. // Testnet represents the test network.
@ -133,9 +133,9 @@ const (
Devnet C4exNet = 0x732d87e1 Devnet C4exNet = 0x732d87e1
) )
// bnStrings is a map of kaspa networks back to their constant names for // bnStrings is a map of c4ex networks back to their constant names for
// pretty printing. // pretty printing.
// bnStrings는 kaspa 네트워크의 상수 이름으로 돌아가는 맵입니다. // bnStrings는 c4ex 네트워크의 상수 이름으로 돌아가는 맵입니다.
// 예쁜 인쇄. // 예쁜 인쇄.
var bnStrings = map[C4exNet]string{ var bnStrings = map[C4exNet]string{
Mainnet: "Mainnet", Mainnet: "Mainnet",

View File

@ -33,7 +33,7 @@ func TestServiceFlagStringer(t *testing.T) {
} }
} }
// TestC4exNetStringer tests the stringized output for kaspa net types. // TestC4exNetStringer tests the stringized output for c4ex net types.
func TestC4exNetStringer(t *testing.T) { func TestC4exNetStringer(t *testing.T) {
tests := []struct { tests := []struct {
in C4exNet in C4exNet

View File

@ -60,7 +60,7 @@ func NewSubmitBlockResponseMessage() *SubmitBlockResponseMessage {
return &SubmitBlockResponseMessage{} return &SubmitBlockResponseMessage{}
} }
// RPCBlock is a kaspad block representation meant to be // RPCBlock is a c4exd block representation meant to be
// used over RPC // used over RPC
type RPCBlock struct { type RPCBlock struct {
Header *RPCBlockHeader Header *RPCBlockHeader
@ -68,7 +68,7 @@ type RPCBlock struct {
VerboseData *RPCBlockVerboseData VerboseData *RPCBlockVerboseData
} }
// RPCBlockHeader is a kaspad block header representation meant to be // RPCBlockHeader is a c4exd block header representation meant to be
// used over RPC // used over RPC
type RPCBlockHeader struct { type RPCBlockHeader struct {
Version uint32 Version uint32

View File

@ -42,7 +42,7 @@ func NewSubmitTransactionResponseMessage(transactionID string) *SubmitTransactio
} }
} }
// RPCTransaction is a kaspad transaction representation meant to be // RPCTransaction is a c4exd transaction representation meant to be
// used over RPC // used over RPC
type RPCTransaction struct { type RPCTransaction struct {
Version uint16 Version uint16
@ -55,7 +55,7 @@ type RPCTransaction struct {
VerboseData *RPCTransactionVerboseData VerboseData *RPCTransactionVerboseData
} }
// RPCTransactionInput is a kaspad transaction input representation // RPCTransactionInput is a c4exd transaction input representation
// meant to be used over RPC // meant to be used over RPC
type RPCTransactionInput struct { type RPCTransactionInput struct {
PreviousOutpoint *RPCOutpoint PreviousOutpoint *RPCOutpoint
@ -65,13 +65,13 @@ type RPCTransactionInput struct {
VerboseData *RPCTransactionInputVerboseData VerboseData *RPCTransactionInputVerboseData
} }
// RPCScriptPublicKey is a kaspad ScriptPublicKey representation // RPCScriptPublicKey is a c4exd ScriptPublicKey representation
type RPCScriptPublicKey struct { type RPCScriptPublicKey struct {
Version uint16 Version uint16
Script string Script string
} }
// RPCTransactionOutput is a kaspad transaction output representation // RPCTransactionOutput is a c4exd transaction output representation
// meant to be used over RPC // meant to be used over RPC
type RPCTransactionOutput struct { type RPCTransactionOutput struct {
Amount uint64 Amount uint64
@ -79,14 +79,14 @@ type RPCTransactionOutput struct {
VerboseData *RPCTransactionOutputVerboseData VerboseData *RPCTransactionOutputVerboseData
} }
// RPCOutpoint is a kaspad outpoint representation meant to be used // RPCOutpoint is a c4exd outpoint representation meant to be used
// over RPC // over RPC
type RPCOutpoint struct { type RPCOutpoint struct {
TransactionID string TransactionID string
Index uint32 Index uint32
} }
// RPCUTXOEntry is a kaspad utxo entry representation meant to be used // RPCUTXOEntry is a c4exd utxo entry representation meant to be used
// over RPC // over RPC
type RPCUTXOEntry struct { type RPCUTXOEntry struct {
Amount uint64 Amount uint64

View File

@ -22,7 +22,7 @@ import (
"github.com/c4ei/yunseokyeol/util/panics" "github.com/c4ei/yunseokyeol/util/panics"
) )
// ComponentManager is a wrapper for all the kaspad services // ComponentManager is a wrapper for all the c4exd services
type ComponentManager struct { type ComponentManager struct {
cfg *config.Config cfg *config.Config
addressManager *addressmanager.AddressManager addressManager *addressmanager.AddressManager
@ -34,14 +34,14 @@ type ComponentManager struct {
started, shutdown int32 started, shutdown int32
} }
// Start launches all the kaspad services. // Start launches all the c4exd services.
func (a *ComponentManager) Start() { func (a *ComponentManager) Start() {
// Already started? // Already started?
if atomic.AddInt32(&a.started, 1) != 1 { if atomic.AddInt32(&a.started, 1) != 1 {
return return
} }
log.Trace("Starting kaspad") log.Trace("Starting c4exd")
err := a.netAdapter.Start() err := a.netAdapter.Start()
if err != nil { if err != nil {
@ -51,7 +51,7 @@ func (a *ComponentManager) Start() {
a.connectionManager.Start() a.connectionManager.Start()
} }
// Stop gracefully shuts down all the kaspad services. // Stop gracefully shuts down all the c4exd services.
func (a *ComponentManager) Stop() { func (a *ComponentManager) Stop() {
// Make sure this only happens once. // Make sure this only happens once.
if atomic.AddInt32(&a.shutdown, 1) != 1 { if atomic.AddInt32(&a.shutdown, 1) != 1 {

View File

@ -12,11 +12,11 @@ import (
var ( var (
// userAgentName is the user agent name and is used to help identify // userAgentName is the user agent name and is used to help identify
// ourselves to other kaspa peers. // ourselves to other c4ex peers.
userAgentName = "kaspad" userAgentName = "c4exd"
// userAgentVersion is the user agent version and is used to help // userAgentVersion is the user agent version and is used to help
// identify ourselves to other kaspa peers. // identify ourselves to other c4ex peers.
userAgentVersion = version.Version() userAgentVersion = version.Version()
// defaultServices describes the default services that are supported by // defaultServices describes the default services that are supported by

View File

@ -6,7 +6,7 @@ import (
"github.com/c4ei/yunseokyeol/app/protocol/common" "github.com/c4ei/yunseokyeol/app/protocol/common"
"github.com/c4ei/yunseokyeol/app/protocol/flows/ready" "github.com/c4ei/yunseokyeol/app/protocol/flows/ready"
v5 "github.com/kaspanet/kaspad/app/protocol/flows/v5" v5 "github.com/c4exnet/c4exd/app/protocol/flows/v5"
"github.com/c4ei/yunseokyeol/app/appmessage" "github.com/c4ei/yunseokyeol/app/appmessage"
"github.com/c4ei/yunseokyeol/app/protocol/flows/handshake" "github.com/c4ei/yunseokyeol/app/protocol/flows/handshake"

View File

@ -21,7 +21,7 @@ type NotificationManager struct {
params *dagconfig.Params params *dagconfig.Params
} }
// UTXOsChangedNotificationAddress represents a kaspad address. // UTXOsChangedNotificationAddress represents a c4exd address.
// This type is meant to be used in UTXOsChanged notifications // This type is meant to be used in UTXOsChanged notifications
type UTXOsChangedNotificationAddress struct { type UTXOsChangedNotificationAddress struct {
Address string Address string

View File

@ -13,7 +13,7 @@ import (
func HandleGetBalanceByAddress(context *rpccontext.Context, _ *router.Router, request appmessage.Message) (appmessage.Message, error) { func HandleGetBalanceByAddress(context *rpccontext.Context, _ *router.Router, request appmessage.Message) (appmessage.Message, error) {
if !context.Config.UTXOIndex { if !context.Config.UTXOIndex {
errorMessage := &appmessage.GetUTXOsByAddressesResponseMessage{} errorMessage := &appmessage.GetUTXOsByAddressesResponseMessage{}
errorMessage.Error = appmessage.RPCErrorf("Method unavailable when kaspad is run without --utxoindex") errorMessage.Error = appmessage.RPCErrorf("Method unavailable when c4exd is run without --utxoindex")
return errorMessage, nil return errorMessage, nil
} }

View File

@ -11,7 +11,7 @@ import (
func HandleGetBalancesByAddresses(context *rpccontext.Context, _ *router.Router, request appmessage.Message) (appmessage.Message, error) { func HandleGetBalancesByAddresses(context *rpccontext.Context, _ *router.Router, request appmessage.Message) (appmessage.Message, error) {
if !context.Config.UTXOIndex { if !context.Config.UTXOIndex {
errorMessage := &appmessage.GetBalancesByAddressesResponseMessage{} errorMessage := &appmessage.GetBalancesByAddressesResponseMessage{}
errorMessage.Error = appmessage.RPCErrorf("Method unavailable when kaspad is run without --utxoindex") errorMessage.Error = appmessage.RPCErrorf("Method unavailable when c4exd is run without --utxoindex")
return errorMessage, nil return errorMessage, nil
} }

View File

@ -11,7 +11,7 @@ import (
func HandleGetCoinSupply(context *rpccontext.Context, _ *router.Router, _ appmessage.Message) (appmessage.Message, error) { func HandleGetCoinSupply(context *rpccontext.Context, _ *router.Router, _ appmessage.Message) (appmessage.Message, error) {
if !context.Config.UTXOIndex { if !context.Config.UTXOIndex {
errorMessage := &appmessage.GetCoinSupplyResponseMessage{} errorMessage := &appmessage.GetCoinSupplyResponseMessage{}
errorMessage.Error = appmessage.RPCErrorf("Method unavailable when kaspad is run without --utxoindex") errorMessage.Error = appmessage.RPCErrorf("Method unavailable when c4exd is run without --utxoindex")
return errorMessage, nil return errorMessage, nil
} }

View File

@ -12,7 +12,7 @@ import (
func HandleGetUTXOsByAddresses(context *rpccontext.Context, _ *router.Router, request appmessage.Message) (appmessage.Message, error) { func HandleGetUTXOsByAddresses(context *rpccontext.Context, _ *router.Router, request appmessage.Message) (appmessage.Message, error) {
if !context.Config.UTXOIndex { if !context.Config.UTXOIndex {
errorMessage := &appmessage.GetUTXOsByAddressesResponseMessage{} errorMessage := &appmessage.GetUTXOsByAddressesResponseMessage{}
errorMessage.Error = appmessage.RPCErrorf("Method unavailable when kaspad is run without --utxoindex") errorMessage.Error = appmessage.RPCErrorf("Method unavailable when c4exd is run without --utxoindex")
return errorMessage, nil return errorMessage, nil
} }

View File

@ -10,7 +10,7 @@ import (
func HandleNotifyUTXOsChanged(context *rpccontext.Context, router *router.Router, request appmessage.Message) (appmessage.Message, error) { func HandleNotifyUTXOsChanged(context *rpccontext.Context, router *router.Router, request appmessage.Message) (appmessage.Message, error) {
if !context.Config.UTXOIndex { if !context.Config.UTXOIndex {
errorMessage := appmessage.NewNotifyUTXOsChangedResponseMessage() errorMessage := appmessage.NewNotifyUTXOsChangedResponseMessage()
errorMessage.Error = appmessage.RPCErrorf("Method unavailable when kaspad is run without --utxoindex") errorMessage.Error = appmessage.RPCErrorf("Method unavailable when c4exd is run without --utxoindex")
return errorMessage, nil return errorMessage, nil
} }

View File

@ -10,7 +10,7 @@ import (
func HandleStopNotifyingUTXOsChanged(context *rpccontext.Context, router *router.Router, request appmessage.Message) (appmessage.Message, error) { func HandleStopNotifyingUTXOsChanged(context *rpccontext.Context, router *router.Router, request appmessage.Message) (appmessage.Message, error) {
if !context.Config.UTXOIndex { if !context.Config.UTXOIndex {
errorMessage := appmessage.NewStopNotifyingUTXOsChangedResponseMessage() errorMessage := appmessage.NewStopNotifyingUTXOsChangedResponseMessage()
errorMessage.Error = appmessage.RPCErrorf("Method unavailable when kaspad is run without --utxoindex") errorMessage.Error = appmessage.RPCErrorf("Method unavailable when c4exd is run without --utxoindex")
return errorMessage, nil return errorMessage, nil
} }

View File

@ -14,7 +14,7 @@ golint -set_exit_status ./...
staticcheck -checks SA4006,SA4008,SA4009,SA4010,SA5003,SA1004,SA1014,SA1021,SA1023,SA1024,SA1025,SA1026,SA1027,SA1028,SA2000,SA2001,SA2003,SA4000,SA4001,SA4003,SA4004,SA4011,SA4012,SA4013,SA4014,SA4015,SA4016,SA4017,SA4018,SA4019,SA4020,SA4021,SA4022,SA4023,SA5000,SA5002,SA5004,SA5005,SA5007,SA5008,SA5009,SA5010,SA5011,SA5012,SA6001,SA6002,SA9001,SA9002,SA9003,SA9004,SA9005,SA9006,ST1019 ./... staticcheck -checks SA4006,SA4008,SA4009,SA4010,SA5003,SA1004,SA1014,SA1021,SA1023,SA1024,SA1025,SA1026,SA1027,SA1028,SA2000,SA2001,SA2003,SA4000,SA4001,SA4003,SA4004,SA4011,SA4012,SA4013,SA4014,SA4015,SA4016,SA4017,SA4018,SA4019,SA4020,SA4021,SA4022,SA4023,SA5000,SA5002,SA5004,SA5005,SA5007,SA5008,SA5009,SA5010,SA5011,SA5012,SA6001,SA6002,SA9001,SA9002,SA9003,SA9004,SA9005,SA9006,ST1019 ./...
go build $FLAGS -o kaspad . go build $FLAGS -o c4exd .
if [ -n "${NO_PARALLEL}" ] if [ -n "${NO_PARALLEL}" ]
then then

View File

@ -11,8 +11,8 @@ Kaspad v0.12.12 - 2023-03-06
* Rename last references to blockheight (#2089) * Rename last references to blockheight (#2089)
* Add code of conduct (#2183) * Add code of conduct (#2183)
* Extend TestGetPreciseSigOps with more tests (#2188) * Extend TestGetPreciseSigOps with more tests (#2188)
* Add Dockerfile to kaspawallet (#2187) * Add Dockerfile to c4exwallet (#2187)
* Add `--send-all` to `kaspawallet send` command (#2181) * Add `--send-all` to `c4exwallet send` command (#2181)
* Bump golang.org/x/text from 0.3.5 to 0.3.8 (#2190) * Bump golang.org/x/text from 0.3.5 to 0.3.8 (#2190)
* Upgrade to go 1.19 (#2191) * Upgrade to go 1.19 (#2191)
@ -43,7 +43,7 @@ Kaspad v0.12.8 - 2022-10-23
=========================== ===========================
* Remove hard fork activation rules (#2152) * Remove hard fork activation rules (#2152)
* Add lock file to kaspawallet (#2154) * Add lock file to c4exwallet (#2154)
* Add a new testnet DNS seeder (#2156) * Add a new testnet DNS seeder (#2156)
* Use utxo diff algo for pruning point move and use acceptance data method only as a fall-back (#2157) * Use utxo diff algo for pruning point move and use acceptance data method only as a fall-back (#2157)
* Make more checks if status is invalid even if the block exists (#2158) * Make more checks if status is invalid even if the block exists (#2158)
@ -52,7 +52,7 @@ Kaspad v0.12.8 - 2022-10-23
Kaspad v0.12.7 - 2022-09-21 Kaspad v0.12.7 - 2022-09-21
=========================== ===========================
* Security Fix + Hard fork - Full details can be seen here: https://medium.com/@michaelsuttonil/kaspa-security-patch-and-hard-fork-september-2022-12da617b0094 * Security Fix + Hard fork - Full details can be seen here: https://medium.com/@michaelsuttonil/c4ex-security-patch-and-hard-fork-september-2022-12da617b0094
Kaspad v0.12.6 - 2022-09-09 Kaspad v0.12.6 - 2022-09-09
=========================== ===========================
@ -103,7 +103,7 @@ Kaspad v0.12.2 - 2022-06-17
* Clarify wallet message concerning a wallet daemon sync state (#2045) * Clarify wallet message concerning a wallet daemon sync state (#2045)
* Change the way the miner executable reports execution errors (closes issue #1677) (#2048) * Change the way the miner executable reports execution errors (closes issue #1677) (#2048)
* Fix kaspawallet help messages, clarify sweep command help string (#2067) * Fix c4exwallet help messages, clarify sweep command help string (#2067)
* Wallet parse/send/create commands improvement (#2024) * Wallet parse/send/create commands improvement (#2024)
* Use chunks for `GetBlocksAcceptanceData` calls in order to avoid blocking consensus for too long (#2075) * Use chunks for `GetBlocksAcceptanceData` calls in order to avoid blocking consensus for too long (#2075)
* Unite multiple `GetBlockAcceptanceData` consensus calls to one (#2074) * Unite multiple `GetBlockAcceptanceData` consensus calls to one (#2074)
@ -121,7 +121,7 @@ Bug Fixes:
Kaspad v0.12.1 - 2022-05-31 Kaspad v0.12.1 - 2022-05-31
=========================== ===========================
* Fix utxoindex synchronization bug which resulted in kaspawallet orphan tx errors (#2052, #2056, #2059) * Fix utxoindex synchronization bug which resulted in c4exwallet orphan tx errors (#2052, #2056, #2059)
* Add a channel mechanism for consensus events to be processed in the order they were produced (#2052, #2056, #2059) * Add a channel mechanism for consensus events to be processed in the order they were produced (#2052, #2056, #2059)
* Block template cache improvement (#2023) * Block template cache improvement (#2023)
* Improved staging shard performance (#2034) * Improved staging shard performance (#2034)
@ -130,14 +130,14 @@ Kaspad v0.12.1 - 2022-05-31
* Remove HF1 activation code (#2042) * Remove HF1 activation code (#2042)
Kaspa wallet: Kaspa wallet:
* Various kaspawallet text fixes and log additions (#2032, #2047, #2062) * Various c4exwallet text fixes and log additions (#2032, #2047, #2062)
* Wallet address synchronization improvement (#2025) * Wallet address synchronization improvement (#2025)
* Add support for `from` address in `kaspawallet send` (#1964) * Add support for `from` address in `c4exwallet send` (#1964)
* Make kaspawallet ignore outputs that exist in the mempool (#2053) * Make c4exwallet ignore outputs that exist in the mempool (#2053)
* Wrap the entire wallet send operation with a lock (#2063) * Wrap the entire wallet send operation with a lock (#2063)
RPC API: RPC API:
* Add "GetMempoolEntriesByAddresses" to kaspad RPC (#2022) * Add "GetMempoolEntriesByAddresses" to c4exd RPC (#2022)
* Make sure RPCErrors are returned and do not crash the system (#2039) * Make sure RPCErrors are returned and do not crash the system (#2039)
* Add AcceptedTransactionIDs to ChainChanged notification and VirtualSelectedParentChain RPC (#2036, for exchanges to track tx confirmations) * Add AcceptedTransactionIDs to ChainChanged notification and VirtualSelectedParentChain RPC (#2036, for exchanges to track tx confirmations)
* Allow blank address in NotifyUTXOsChanged to get all updates (#2027) * Allow blank address in NotifyUTXOsChanged to get all updates (#2027)
@ -157,7 +157,7 @@ Bug fixes:
* Use cosigner index 0 for read only wallets (#2014) * Use cosigner index 0 for read only wallets (#2014)
Non-breaking changes: Non-breaking changes:
* Adding a "sweep" command to `kaspawallet` (#2018) * Adding a "sweep" command to `c4exwallet` (#2018)
* Use `blue work` heuristic to skip irrelevant relay blocks * Use `blue work` heuristic to skip irrelevant relay blocks
* Kaspawallet daemon: Add Send and Sign commands (#2016) * Kaspawallet daemon: Add Send and Sign commands (#2016)
@ -171,12 +171,12 @@ Kaspad v0.11.16 - 2022-04-05
Kaspad v0.11.15 - 2022-04-05 Kaspad v0.11.15 - 2022-04-05
=========================== ===========================
* Add support for auto-compound in `kaspawallet send` (#1951) * Add support for auto-compound in `c4exwallet send` (#1951)
* Unite reachability stores (#1963, #1993, #2001) * Unite reachability stores (#1963, #1993, #2001)
* Add names to nameless routes (#1986) * Add names to nameless routes (#1986)
* Optimize the miner-kaspad flow and latency (#1988) * Optimize the miner-c4exd flow and latency (#1988)
* Upgrade to go 1.18 (#1992) * Upgrade to go 1.18 (#1992)
* Add package name to kaspawalletd .proto file (#1991) * Add package name to c4exwalletd .proto file (#1991)
* Block template cache (#1994) * Block template cache (#1994)
* Add extra data to GetBlockTemplate request (#1995, #1997) * Add extra data to GetBlockTemplate request (#1995, #1997)
* New definition for "out of sync" (#1996) * New definition for "out of sync" (#1996)
@ -195,20 +195,20 @@ Kaspad v0.11.13 - 2022-03-16
=========================== ===========================
* Display progress of IBD process in Kaspad logs (#1938, #1939, #1949, #1977) * Display progress of IBD process in Kaspad logs (#1938, #1939, #1949, #1977)
* Optimize DB writes during fresh IBD (#1937) * Optimize DB writes during fresh IBD (#1937)
* Add AllowConnectionToDifferentVersions flag to kaspactl (#1940) * Add AllowConnectionToDifferentVersions flag to c4exctl (#1940)
* Drop support for p2p v3 (#1942) * Drop support for p2p v3 (#1942)
* Various transaction processing fixes and workarounds (#1943, #1946, #1971, #1974) * Various transaction processing fixes and workarounds (#1943, #1946, #1971, #1974)
* Make kaspawallet store the utxos sorted by amount (#1947) * Make c4exwallet store the utxos sorted by amount (#1947)
* Implement a `parse` sub command in the kaspawallet (#1953) * Implement a `parse` sub command in the c4exwallet (#1953)
* Set MaxBlockLevels for non-mainnet networks to 250 (#1952) * Set MaxBlockLevels for non-mainnet networks to 250 (#1952)
* Add cache to DAA block window (#1948) * Add cache to DAA block window (#1948)
* kaspactl: string slice parser for GetUtxosByAddresses (#1955, first contribution by @icook) * c4exctl: string slice parser for GetUtxosByAddresses (#1955, first contribution by @icook)
* Add MergeSet and IsChainBlock to RPC (#1961) * Add MergeSet and IsChainBlock to RPC (#1961)
* Ignore transaction invs during IBD (#1960) * Ignore transaction invs during IBD (#1960)
* Optimize validation of expected header pruning point (#1962) * Optimize validation of expected header pruning point (#1962)
* Fix a bug in bounded marge depth validation (#1966) * Fix a bug in bounded marge depth validation (#1966)
* Don't relay blocks in virtual anticone (#1970) * Don't relay blocks in virtual anticone (#1970)
* Add version to block template to allow tracking of miner's kaspad version (#1967) * Add version to block template to allow tracking of miner's c4exd version (#1967)
* New p2p version: v5 (#1969) * New p2p version: v5 (#1969)
* Fix IBD shared past negotiation to be non quadratic also in the worst-case (#1969, p2p v5) * Fix IBD shared past negotiation to be non quadratic also in the worst-case (#1969, p2p v5)
* Send pruning point anticone in batches (#1973, p2p v5) * Send pruning point anticone in batches (#1973, p2p v5)
@ -239,10 +239,10 @@ Bug fixes:
Non-breaking changes: Non-breaking changes:
* Address search: cleanup repetitively-offline addresses and use randomization weighted by connection failures (#1899, #1916) * Address search: cleanup repetitively-offline addresses and use randomization weighted by connection failures (#1899, #1916)
* New DNS seeders and removal of offline one (#1901, #1910, #1918) * New DNS seeders and removal of offline one (#1901, #1910, #1918)
* Add request balance by address to kaspactl (#1885) * Add request balance by address to c4exctl (#1885)
* Wallet: show balance by addresses (#1904) * Wallet: show balance by addresses (#1904)
* Reject outdated non-DAA blocks submitted via RPC (#1914) * Reject outdated non-DAA blocks submitted via RPC (#1914)
* Add a profile option to kaspawallet daemon (#1854) * Add a profile option to c4exwallet daemon (#1854)
Kaspad v0.11.8 - 2021-12-13 Kaspad v0.11.8 - 2021-12-13
=========================== ===========================
@ -256,7 +256,7 @@ Non-breaking changes:
Kaspad v0.11.7 - 2021-12-11 Kaspad v0.11.7 - 2021-12-11
=========================== ===========================
Breaking changes: Breaking changes:
* kaspawallet: show-address →new-address + show-addresses (#1870) * c4exwallet: show-address →new-address + show-addresses (#1870)
Bug fixes: Bug fixes:
* Fix numThreads using getAEAD instead of decryptMnemonic (#1859) * Fix numThreads using getAEAD instead of decryptMnemonic (#1859)
@ -266,7 +266,7 @@ Non-breaking changes:
* Ignore header mass in devnet and testnet (#1879) * Ignore header mass in devnet and testnet (#1879)
* Remove unused args from CalcSubsidy (#1877) * Remove unused args from CalcSubsidy (#1877)
* ExpectedHeaderPruningPoint fix (#1876) * ExpectedHeaderPruningPoint fix (#1876)
* Changes to libkaspawallet to support Kaspaper (#1878) * Changes to libc4exwallet to support Kaspaper (#1878)
* Get rid of genesis's UTXO dump (#1867) * Get rid of genesis's UTXO dump (#1867)
주요 변경 사항: 주요 변경 사항:
* devnet 및 testnet에서 헤더 질량을 무시합니다(#1879) * devnet 및 testnet에서 헤더 질량을 무시합니다(#1879)
@ -309,7 +309,7 @@ Major changes include:
* Removing RIPEMD160 and SHA1 from the codebase entirely * Removing RIPEMD160 and SHA1 from the codebase entirely
* Making P2PKH transactions non-standard * Making P2PKH transactions non-standard
* Vastly enhancing the CLI wallet * Vastly enhancing the CLI wallet
* Restructuring kaspad's app/home directory * Restructuring c4exd's app/home directory
* Modifying block and transaction types in the RPC to be easier to consume clientside * Modifying block and transaction types in the RPC to be easier to consume clientside
A partial list of the more-important commits is as follows: A partial list of the more-important commits is as follows:
@ -322,7 +322,7 @@ A partial list of the more-important commits is as follows:
* Use DAA score where needed (#1602) * Use DAA score where needed (#1602)
* Remove the Services field from NetAddress. (#1610) * Remove the Services field from NetAddress. (#1610)
* Fix getBlocks to not add the anticone when some blocks were filtered by GetHashesBetween (#1611) * Fix getBlocks to not add the anticone when some blocks were filtered by GetHashesBetween (#1611)
* Restructure the default ~/.kaspad directory layout (#1613) * Restructure the default ~/.c4exd directory layout (#1613)
* Replace the HomeDir flag with a AppDir flag (#1615) * Replace the HomeDir flag with a AppDir flag (#1615)
* Implement BIP-143-like sighash (#1598) * Implement BIP-143-like sighash (#1598)
* Change --datadir to --appdir and remove symmetrical connection in stability tests (#1617) * Change --datadir to --appdir and remove symmetrical connection in stability tests (#1617)
@ -334,7 +334,7 @@ A partial list of the more-important commits is as follows:
* Add mass limit to mempool (#1627) * Add mass limit to mempool (#1627)
* In RPC, use RPCTransactions and RPCBlocks instead of TransactionMessages and BlockMessages (#1609) * In RPC, use RPCTransactions and RPCBlocks instead of TransactionMessages and BlockMessages (#1609)
* Use go-secp256k1 v0.0.5 (#1640) * Use go-secp256k1 v0.0.5 (#1640)
* Add a show-address subcommand to kaspawallet (#1653) * Add a show-address subcommand to c4exwallet (#1653)
* Replace p2pkh with p2pk (#1650) * Replace p2pkh with p2pk (#1650)
* Implement importing private keys into the wallet (#1655) * Implement importing private keys into the wallet (#1655)
* Add dump unencrypted data sub command to the wallet (#1661) * Add dump unencrypted data sub command to the wallet (#1661)
@ -363,7 +363,7 @@ Kaspad v0.9.0 - 2021-03-04
* Add default dns-seeder to testnet (#1568) * Add default dns-seeder to testnet (#1568)
* Fix utxoindex deserialization (#1566) * Fix utxoindex deserialization (#1566)
* Add pruning point hash to GetBlockDagInfo response (#1565) * Add pruning point hash to GetBlockDagInfo response (#1565)
* Use EmitUnpopulated so that kaspactl prints all fields, even the default ones (#1561) * Use EmitUnpopulated so that c4exctl prints all fields, even the default ones (#1561)
* Stop logging an error whenever an RPC/P2P connection is canceled (#1562) * Stop logging an error whenever an RPC/P2P connection is canceled (#1562)
* Cleanup the logger and make it asynchronous (#1524) * Cleanup the logger and make it asynchronous (#1524)
* Close all iterators (#1542) * Close all iterators (#1542)
@ -379,6 +379,6 @@ Kaspad v0.8.10 - 2021-02-25
* Remove virtual diff parents - only selectedTip is virtualDiffParent now (#1550) * Remove virtual diff parents - only selectedTip is virtualDiffParent now (#1550)
* Fix UTXO index (#1548) * Fix UTXO index (#1548)
* Prevent fast failing (#1545) * Prevent fast failing (#1545)
* Increase the sleep time in kaspaminer when the node is not synced (#1544) * Increase the sleep time in c4exminer when the node is not synced (#1544)
* Disallow header only blocks on RPC, relay and when requesting IBD full blocks (#1537) * Disallow header only blocks on RPC, relay and when requesting IBD full blocks (#1537)
* Make templateManager hold a DomainBlock and isSynced bool instead of a GetBlockTemplateResponseMessage (#1538) * Make templateManager hold a DomainBlock and isSynced bool instead of a GetBlockTemplateResponseMessage (#1538)

View File

@ -1,6 +1,6 @@
# kaspactl # c4exctl
kaspactl is an RPC client for kaspad c4exctl is an RPC client for c4exd
## Requirements ## Requirements
@ -19,11 +19,11 @@ Go 1.19 or later.
$ go version $ go version
``` ```
- Run the following commands to obtain and install kaspad including all dependencies: - Run the following commands to obtain and install c4exd including all dependencies:
```bash ```bash
$ git clone https://github.com/c4ei/kaspad $ git clone https://github.com/c4ei/c4exd
$ cd kaspad/cmd/kaspactl $ cd c4exd/cmd/c4exctl
$ go install . $ go install .
``` ```
@ -42,13 +42,13 @@ $ kaspctl --help
But the minimum configuration needed to run it is: But the minimum configuration needed to run it is:
```bash ```bash
$ kaspactl <REQUEST_JSON> $ c4exctl <REQUEST_JSON>
``` ```
For example: For example:
``` ```
$ kaspactl '{"getBlockDagInfoRequest":{}}' $ c4exctl '{"getBlockDagInfoRequest":{}}'
``` ```
For a list of all available requests check out the [RPC documentation](infrastructure/network/netadapter/server/grpcserver/protowire/rpc.md) For a list of all available requests check out the [RPC documentation](infrastructure/network/netadapter/server/grpcserver/protowire/rpc.md)

View File

@ -16,7 +16,7 @@ type configFlags struct {
Timeout uint64 `short:"t" long:"timeout" description:"Timeout for the request (in seconds)"` Timeout uint64 `short:"t" long:"timeout" description:"Timeout for the request (in seconds)"`
RequestJSON string `short:"j" long:"json" description:"The request in JSON format"` RequestJSON string `short:"j" long:"json" description:"The request in JSON format"`
ListCommands bool `short:"l" long:"list-commands" description:"List all commands and exit"` ListCommands bool `short:"l" long:"list-commands" description:"List all commands and exit"`
AllowConnectionToDifferentVersions bool `short:"a" long:"allow-connection-to-different-versions" description:"Allow connections to versions different than kaspactl's version'"` AllowConnectionToDifferentVersions bool `short:"a" long:"allow-connection-to-different-versions" description:"Allow connections to versions different than c4exctl's version'"`
CommandAndParameters []string CommandAndParameters []string
config.NetworkFlags config.NetworkFlags
} }
@ -27,8 +27,8 @@ func parseConfig() (*configFlags, error) {
Timeout: defaultTimeout, Timeout: defaultTimeout,
} }
parser := flags.NewParser(cfg, flags.HelpFlag) parser := flags.NewParser(cfg, flags.HelpFlag)
parser.Usage = "kaspactl [OPTIONS] [COMMAND] [COMMAND PARAMETERS].\n\nCommand can be supplied only if --json is not used." + parser.Usage = "c4exctl [OPTIONS] [COMMAND] [COMMAND PARAMETERS].\n\nCommand can be supplied only if --json is not used." +
"\n\nUse `kaspactl --list-commands` to get a list of all commands and their parameters." + "\n\nUse `c4exctl --list-commands` to get a list of all commands and their parameters." +
"\nFor optional parameters- use '-' without quotes to not pass the parameter.\n" "\nFor optional parameters- use '-' without quotes to not pass the parameter.\n"
remainingArgs, err := parser.Parse() remainingArgs, err := parser.Parse()
if err != nil { if err != nil {

View File

@ -1,9 +1,9 @@
# -- multistage docker build: stage #1: build stage # -- multistage docker build: stage #1: build stage
FROM golang:1.19-alpine AS build FROM golang:1.19-alpine AS build
RUN mkdir -p /go/src/github.com/c4ei/kaspad RUN mkdir -p /go/src/github.com/c4ei/c4exd
WORKDIR /go/src/github.com/c4ei/kaspad WORKDIR /go/src/github.com/c4ei/c4exd
RUN apk add --no-cache curl git openssh binutils gcc musl-dev RUN apk add --no-cache curl git openssh binutils gcc musl-dev
@ -14,9 +14,9 @@ RUN go mod download
COPY . . COPY . .
WORKDIR /go/src/github.com/c4ei/yunseokyeol/cmd/kaspactl WORKDIR /go/src/github.com/c4ei/yunseokyeol/cmd/c4exctl
RUN GOOS=linux go build -a -installsuffix cgo -o kaspactl . RUN GOOS=linux go build -a -installsuffix cgo -o c4exctl .
# --- multistage docker build: stage #2: runtime image # --- multistage docker build: stage #2: runtime image
FROM alpine FROM alpine
@ -24,7 +24,7 @@ WORKDIR /app
RUN apk add --no-cache ca-certificates tini RUN apk add --no-cache ca-certificates tini
COPY --from=build /go/src/github.com/c4ei/yunseokyeol/cmd/kaspactl/kaspactl /app/ COPY --from=build /go/src/github.com/c4ei/yunseokyeol/cmd/c4exctl/c4exctl /app/
USER nobody USER nobody
ENTRYPOINT [ "/sbin/tini", "--" ] ENTRYPOINT [ "/sbin/tini", "--" ]

View File

@ -36,13 +36,13 @@ func main() {
defer client.Disconnect() defer client.Disconnect()
if !cfg.AllowConnectionToDifferentVersions { if !cfg.AllowConnectionToDifferentVersions {
kaspadMessage, err := client.Post(&protowire.KaspadMessage{Payload: &protowire.KaspadMessage_GetInfoRequest{GetInfoRequest: &protowire.GetInfoRequestMessage{}}}) c4exdMessage, err := client.Post(&protowire.KaspadMessage{Payload: &protowire.KaspadMessage_GetInfoRequest{GetInfoRequest: &protowire.GetInfoRequestMessage{}}})
if err != nil { if err != nil {
printErrorAndExit(fmt.Sprintf("Cannot post GetInfo message: %s", err)) printErrorAndExit(fmt.Sprintf("Cannot post GetInfo message: %s", err))
} }
localVersion := version.Version() localVersion := version.Version()
remoteVersion := kaspadMessage.GetGetInfoResponse().ServerVersion remoteVersion := c4exdMessage.GetGetInfoResponse().ServerVersion
if localVersion != remoteVersion { if localVersion != remoteVersion {
printErrorAndExit(fmt.Sprintf("Server version mismatch, expect: %s, got: %s", localVersion, remoteVersion)) printErrorAndExit(fmt.Sprintf("Server version mismatch, expect: %s, got: %s", localVersion, remoteVersion))
@ -101,8 +101,8 @@ func postJSON(cfg *configFlags, client *grpcclient.GRPCClient, doneChan chan str
} }
func prettifyResponse(response string) string { func prettifyResponse(response string) string {
kaspadMessage := &protowire.KaspadMessage{} c4exdMessage := &protowire.KaspadMessage{}
err := protojson.Unmarshal([]byte(response), kaspadMessage) err := protojson.Unmarshal([]byte(response), c4exdMessage)
if err != nil { if err != nil {
printErrorAndExit(fmt.Sprintf("error parsing the response from the RPC server: %s", err)) printErrorAndExit(fmt.Sprintf("error parsing the response from the RPC server: %s", err))
} }
@ -110,7 +110,7 @@ func prettifyResponse(response string) string {
marshalOptions := &protojson.MarshalOptions{} marshalOptions := &protojson.MarshalOptions{}
marshalOptions.Indent = " " marshalOptions.Indent = " "
marshalOptions.EmitUnpopulated = true marshalOptions.EmitUnpopulated = true
return marshalOptions.Format(kaspadMessage) return marshalOptions.Format(c4exdMessage)
} }
func printErrorAndExit(message string) { func printErrorAndExit(message string) {

View File

@ -33,9 +33,9 @@ func generateKaspadMessage(commandValue reflect.Value, commandDesc *commandDescr
commandWrapper := reflect.New(commandDesc.typeof) commandWrapper := reflect.New(commandDesc.typeof)
unwrapCommandValue(commandWrapper).Set(commandValue) unwrapCommandValue(commandWrapper).Set(commandValue)
kaspadMessage := reflect.New(reflect.TypeOf(protowire.KaspadMessage{})) c4exdMessage := reflect.New(reflect.TypeOf(protowire.KaspadMessage{}))
kaspadMessage.Elem().FieldByName("Payload").Set(commandWrapper) c4exdMessage.Elem().FieldByName("Payload").Set(commandWrapper)
return kaspadMessage.Interface().(*protowire.KaspadMessage), nil return c4exdMessage.Interface().(*protowire.KaspadMessage), nil
} }
// pointerToValue returns a reflect.Value that represents a pointer to the given value // pointerToValue returns a reflect.Value that represents a pointer to the given value

View File

@ -1,6 +1,6 @@
# kaspaminer # c4exminer
Kaspaminer is a CPU-based miner for kaspad Kaspaminer is a CPU-based miner for c4exd
## Requirements ## Requirements
@ -19,11 +19,11 @@ Go 1.19 or later.
$ go version $ go version
``` ```
- Run the following commands to obtain and install kaspad including all dependencies: - Run the following commands to obtain and install c4exd including all dependencies:
```bash ```bash
$ git clone https://github.com/c4ei/kaspad $ git clone https://github.com/c4ei/c4exd
$ cd kaspad/cmd/kaspaminer $ cd c4exd/cmd/c4exminer
$ go install . $ go install .
``` ```
@ -33,13 +33,13 @@ $ go install .
## Usage ## Usage
The full kaspaminer configuration options can be seen with: The full c4exminer configuration options can be seen with:
```bash ```bash
$ kaspaminer --help $ c4exminer --help
``` ```
But the minimum configuration needed to run it is: But the minimum configuration needed to run it is:
```bash ```bash
$ kaspaminer --miningaddr=<YOUR_MINING_ADDRESS> $ c4exminer --miningaddr=<YOUR_MINING_ADDRESS>
``` ```

View File

@ -17,14 +17,14 @@ import (
) )
const ( const (
defaultLogFilename = "kaspaminer.log" defaultLogFilename = "c4exminer.log"
defaultErrLogFilename = "kaspaminer_err.log" defaultErrLogFilename = "c4exminer_err.log"
defaultTargetBlockRateRatio = 2.0 defaultTargetBlockRateRatio = 2.0
) )
var ( var (
// Default configuration options // Default configuration options
defaultAppDir = util.AppDir("kaspaminer", false) defaultAppDir = util.AppDir("c4exminer", false)
defaultLogFile = filepath.Join(defaultAppDir, defaultLogFilename) defaultLogFile = filepath.Join(defaultAppDir, defaultLogFilename)
defaultErrLogFile = filepath.Join(defaultAppDir, defaultErrLogFilename) defaultErrLogFile = filepath.Join(defaultAppDir, defaultErrLogFilename)
defaultRPCServer = "localhost" defaultRPCServer = "localhost"

View File

@ -1,9 +1,9 @@
# -- multistage docker build: stage #1: build stage # -- multistage docker build: stage #1: build stage
FROM golang:1.19-alpine AS build FROM golang:1.19-alpine AS build
RUN mkdir -p /go/src/github.com/c4ei/kaspad RUN mkdir -p /go/src/github.com/c4ei/c4exd
WORKDIR /go/src/github.com/c4ei/kaspad WORKDIR /go/src/github.com/c4ei/c4exd
RUN apk add --no-cache curl git openssh binutils gcc musl-dev RUN apk add --no-cache curl git openssh binutils gcc musl-dev
@ -14,8 +14,8 @@ RUN go mod download
COPY . . COPY . .
WORKDIR /go/src/github.com/c4ei/yunseokyeol/cmd/kaspaminer WORKDIR /go/src/github.com/c4ei/yunseokyeol/cmd/c4exminer
RUN GOOS=linux go build -a -installsuffix cgo -o kaspaminer . RUN GOOS=linux go build -a -installsuffix cgo -o c4exminer .
# --- multistage docker build: stage #2: runtime image # --- multistage docker build: stage #2: runtime image
FROM alpine FROM alpine
@ -23,7 +23,7 @@ WORKDIR /app
RUN apk add --no-cache ca-certificates tini RUN apk add --no-cache ca-certificates tini
COPY --from=build /go/src/github.com/c4ei/yunseokyeol/cmd/kaspaminer/kaspaminer /app/ COPY --from=build /go/src/github.com/c4ei/yunseokyeol/cmd/c4exminer/c4exminer /app/
USER nobody USER nobody
ENTRYPOINT [ "/sbin/tini", "--" ] ENTRYPOINT [ "/sbin/tini", "--" ]

View File

@ -9,7 +9,7 @@ import (
"github.com/c4ei/yunseokyeol/version" "github.com/c4ei/yunseokyeol/version"
"github.com/c4ei/yunseokyeol/app/appmessage" "github.com/c4ei/yunseokyeol/app/appmessage"
"github.com/c4ei/yunseokyeol/cmd/kaspaminer/templatemanager" "github.com/c4ei/yunseokyeol/cmd/c4exminer/templatemanager"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi" "github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/utils/consensushashing" "github.com/c4ei/yunseokyeol/domain/consensus/utils/consensushashing"
"github.com/c4ei/yunseokyeol/domain/consensus/utils/pow" "github.com/c4ei/yunseokyeol/domain/consensus/utils/pow"
@ -189,7 +189,7 @@ func getBlockForMining(mineWhenNotSynced bool) (*externalapi.DomainBlock, *pow.S
func templatesLoop(client *minerClient, miningAddr util.Address, errChan chan error) { func templatesLoop(client *minerClient, miningAddr util.Address, errChan chan error) {
getBlockTemplate := func() { getBlockTemplate := func() {
template, err := client.GetBlockTemplate(miningAddr.String(), "kaspaminer-"+version.Version()) template, err := client.GetBlockTemplate(miningAddr.String(), "c4exminer-"+version.Version())
if nativeerrors.Is(err, router.ErrTimeout) { if nativeerrors.Is(err, router.ErrTimeout) {
log.Warnf("Got timeout while requesting block template from %s: %s", client.Address(), err) log.Warnf("Got timeout while requesting block template from %s: %s", client.Address(), err)
reconnectErr := client.Reconnect() reconnectErr := client.Reconnect()

View File

@ -4,9 +4,9 @@ import (
"context" "context"
"fmt" "fmt"
"github.com/c4ei/yunseokyeol/cmd/kaspawallet/daemon/client" "github.com/c4ei/yunseokyeol/cmd/c4exwallet/daemon/client"
"github.com/c4ei/yunseokyeol/cmd/kaspawallet/daemon/pb" "github.com/c4ei/yunseokyeol/cmd/c4exwallet/daemon/pb"
"github.com/c4ei/yunseokyeol/cmd/kaspawallet/utils" "github.com/c4ei/yunseokyeol/cmd/c4exwallet/utils"
) )
func balance(conf *balanceConfig) error { func balance(conf *balanceConfig) error {

View File

@ -6,8 +6,8 @@ import (
"io/ioutil" "io/ioutil"
"strings" "strings"
"github.com/c4ei/yunseokyeol/cmd/kaspawallet/daemon/client" "github.com/c4ei/yunseokyeol/cmd/c4exwallet/daemon/client"
"github.com/c4ei/yunseokyeol/cmd/kaspawallet/daemon/pb" "github.com/c4ei/yunseokyeol/cmd/c4exwallet/daemon/pb"
"github.com/pkg/errors" "github.com/pkg/errors"
) )

View File

@ -34,7 +34,7 @@ type configFlags struct {
} }
type createConfig struct { type createConfig struct {
KeysFile string `long:"keys-file" short:"f" description:"Keys file location (default: ~/.kaspawallet/keys.json (*nix), %USERPROFILE%\\AppData\\Local\\Kaspawallet\\key.json (Windows))"` KeysFile string `long:"keys-file" short:"f" description:"Keys file location (default: ~/.c4exwallet/keys.json (*nix), %USERPROFILE%\\AppData\\Local\\Kaspawallet\\key.json (Windows))"`
Password string `long:"password" short:"p" description:"Wallet password"` Password string `long:"password" short:"p" description:"Wallet password"`
Yes bool `long:"yes" short:"y" description:"Assume \"yes\" to all questions"` Yes bool `long:"yes" short:"y" description:"Assume \"yes\" to all questions"`
MinimumSignatures uint32 `long:"min-signatures" short:"m" description:"Minimum required signatures" default:"1"` MinimumSignatures uint32 `long:"min-signatures" short:"m" description:"Minimum required signatures" default:"1"`
@ -52,7 +52,7 @@ type balanceConfig struct {
} }
type sendConfig struct { type sendConfig struct {
KeysFile string `long:"keys-file" short:"f" description:"Keys file location (default: ~/.kaspawallet/keys.json (*nix), %USERPROFILE%\\AppData\\Local\\Kaspawallet\\key.json (Windows))"` KeysFile string `long:"keys-file" short:"f" description:"Keys file location (default: ~/.c4exwallet/keys.json (*nix), %USERPROFILE%\\AppData\\Local\\Kaspawallet\\key.json (Windows))"`
Password string `long:"password" short:"p" description:"Wallet password"` Password string `long:"password" short:"p" description:"Wallet password"`
DaemonAddress string `long:"daemonaddress" short:"d" description:"Wallet daemon server to connect to"` DaemonAddress string `long:"daemonaddress" short:"d" description:"Wallet daemon server to connect to"`
ToAddress string `long:"to-address" short:"t" description:"The public address to send Kaspa to" required:"true"` ToAddress string `long:"to-address" short:"t" description:"The public address to send Kaspa to" required:"true"`
@ -81,7 +81,7 @@ type createUnsignedTransactionConfig struct {
} }
type signConfig struct { type signConfig struct {
KeysFile string `long:"keys-file" short:"f" description:"Keys file location (default: ~/.kaspawallet/keys.json (*nix), %USERPROFILE%\\AppData\\Local\\Kaspawallet\\key.json (Windows))"` KeysFile string `long:"keys-file" short:"f" description:"Keys file location (default: ~/.c4exwallet/keys.json (*nix), %USERPROFILE%\\AppData\\Local\\Kaspawallet\\key.json (Windows))"`
Password string `long:"password" short:"p" description:"Wallet password"` Password string `long:"password" short:"p" description:"Wallet password"`
Transaction string `long:"transaction" short:"t" description:"The unsigned transaction(s) to sign on (encoded in hex)"` Transaction string `long:"transaction" short:"t" description:"The unsigned transaction(s) to sign on (encoded in hex)"`
TransactionFile string `long:"transaction-file" short:"F" description:"The file containing the unsigned transaction(s) to sign on (encoded in hex)"` TransactionFile string `long:"transaction-file" short:"F" description:"The file containing the unsigned transaction(s) to sign on (encoded in hex)"`
@ -113,7 +113,7 @@ type newAddressConfig struct {
} }
type startDaemonConfig struct { type startDaemonConfig struct {
KeysFile string `long:"keys-file" short:"f" description:"Keys file location (default: ~/.kaspawallet/keys.json (*nix), %USERPROFILE%\\AppData\\Local\\Kaspawallet\\key.json (Windows))"` KeysFile string `long:"keys-file" short:"f" description:"Keys file location (default: ~/.c4exwallet/keys.json (*nix), %USERPROFILE%\\AppData\\Local\\Kaspawallet\\key.json (Windows))"`
Password string `long:"password" short:"p" description:"Wallet password"` Password string `long:"password" short:"p" description:"Wallet password"`
RPCServer string `long:"rpcserver" short:"s" description:"RPC server to connect to"` RPCServer string `long:"rpcserver" short:"s" description:"RPC server to connect to"`
Listen string `long:"listen" short:"l" description:"Address to listen on (default: 0.0.0.0:8082)"` Listen string `long:"listen" short:"l" description:"Address to listen on (default: 0.0.0.0:8082)"`
@ -123,7 +123,7 @@ type startDaemonConfig struct {
} }
type dumpUnencryptedDataConfig struct { type dumpUnencryptedDataConfig struct {
KeysFile string `long:"keys-file" short:"f" description:"Keys file location (default: ~/.kaspawallet/keys.json (*nix), %USERPROFILE%\\AppData\\Local\\Kaspawallet\\key.json (Windows))"` KeysFile string `long:"keys-file" short:"f" description:"Keys file location (default: ~/.c4exwallet/keys.json (*nix), %USERPROFILE%\\AppData\\Local\\Kaspawallet\\key.json (Windows))"`
Password string `long:"password" short:"p" description:"Wallet password"` Password string `long:"password" short:"p" description:"Wallet password"`
Yes bool `long:"yes" short:"y" description:"Assume \"yes\" to all questions"` Yes bool `long:"yes" short:"y" description:"Assume \"yes\" to all questions"`
config.NetworkFlags config.NetworkFlags

View File

@ -5,12 +5,12 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/c4ei/yunseokyeol/cmd/kaspawallet/libkaspawallet" "github.com/c4ei/yunseokyeol/cmd/c4exwallet/libc4exwallet"
"github.com/c4ei/yunseokyeol/cmd/kaspawallet/libkaspawallet/bip32" "github.com/c4ei/yunseokyeol/cmd/c4exwallet/libc4exwallet/bip32"
"github.com/c4ei/yunseokyeol/cmd/kaspawallet/utils" "github.com/c4ei/yunseokyeol/cmd/c4exwallet/utils"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/c4ei/yunseokyeol/cmd/kaspawallet/keys" "github.com/c4ei/yunseokyeol/cmd/c4exwallet/keys"
) )
func create(conf *createConfig) error { func create(conf *createConfig) error {
@ -32,8 +32,8 @@ func create(conf *createConfig) error {
} }
fmt.Printf("Notice the above is neither a secret key to your wallet " + fmt.Printf("Notice the above is neither a secret key to your wallet " +
"(use \"kaspawallet dump-unencrypted-data\" to see a secret seed phrase) " + "(use \"c4exwallet dump-unencrypted-data\" to see a secret seed phrase) " +
"nor a wallet public address (use \"kaspawallet new-address\" to create and see one)\n\n") "nor a wallet public address (use \"c4exwallet new-address\" to create and see one)\n\n")
extendedPublicKeys := make([]string, conf.NumPrivateKeys, conf.NumPublicKeys) extendedPublicKeys := make([]string, conf.NumPrivateKeys, conf.NumPublicKeys)
copy(extendedPublicKeys, signerExtendedPublicKeys) copy(extendedPublicKeys, signerExtendedPublicKeys)
@ -58,7 +58,7 @@ func create(conf *createConfig) error {
// For a read only wallet the cosigner index is 0 // For a read only wallet the cosigner index is 0
cosignerIndex := uint32(0) cosignerIndex := uint32(0)
if len(signerExtendedPublicKeys) > 0 { if len(signerExtendedPublicKeys) > 0 {
cosignerIndex, err = libkaspawallet.MinimumCosignerIndex(signerExtendedPublicKeys, extendedPublicKeys) cosignerIndex, err = libc4exwallet.MinimumCosignerIndex(signerExtendedPublicKeys, extendedPublicKeys)
if err != nil { if err != nil {
return err return err
} }

View File

@ -5,8 +5,8 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/c4ei/yunseokyeol/cmd/kaspawallet/daemon/client" "github.com/c4ei/yunseokyeol/cmd/c4exwallet/daemon/client"
"github.com/c4ei/yunseokyeol/cmd/kaspawallet/daemon/pb" "github.com/c4ei/yunseokyeol/cmd/c4exwallet/daemon/pb"
"github.com/c4ei/yunseokyeol/domain/consensus/utils/constants" "github.com/c4ei/yunseokyeol/domain/consensus/utils/constants"
) )

View File

@ -4,15 +4,15 @@ import (
"context" "context"
"time" "time"
"github.com/c4ei/yunseokyeol/cmd/kaspawallet/daemon/server" "github.com/c4ei/yunseokyeol/cmd/c4exwallet/daemon/server"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/c4ei/yunseokyeol/cmd/kaspawallet/daemon/pb" "github.com/c4ei/yunseokyeol/cmd/c4exwallet/daemon/pb"
"google.golang.org/grpc" "google.golang.org/grpc"
) )
// Connect connects to the kaspawalletd server, and returns the client instance // Connect connects to the c4exwalletd server, and returns the client instance
func Connect(address string) (pb.KaspawalletdClient, func(), error) { func Connect(address string) (pb.KaspawalletdClient, func(), error) {
// Connection is local, so 1 second timeout is sufficient // Connection is local, so 1 second timeout is sufficient
ctx, cancel := context.WithTimeout(context.Background(), time.Second) ctx, cancel := context.WithTimeout(context.Background(), time.Second)
@ -21,7 +21,7 @@ func Connect(address string) (pb.KaspawalletdClient, func(), error) {
conn, err := grpc.DialContext(ctx, address, grpc.WithInsecure(), grpc.WithBlock(), grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(server.MaxDaemonSendMsgSize))) conn, err := grpc.DialContext(ctx, address, grpc.WithInsecure(), grpc.WithBlock(), grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(server.MaxDaemonSendMsgSize)))
if err != nil { if err != nil {
if errors.Is(err, context.DeadlineExceeded) { if errors.Is(err, context.DeadlineExceeded) {
return nil, nil, errors.New("kaspawallet daemon is not running, start it with `kaspawallet start-daemon`") return nil, nil, errors.New("c4exwallet daemon is not running, start it with `c4exwallet start-daemon`")
} }
return nil, nil, err return nil, nil, err
} }

View File

@ -1,3 +1,3 @@
//go:generate protoc --go_out=. --go-grpc_out=. --go_opt=paths=source_relative --go-grpc_opt=paths=source_relative kaspawalletd.proto //go:generate protoc --go_out=. --go-grpc_out=. --go_opt=paths=source_relative --go-grpc_opt=paths=source_relative c4exwalletd.proto
package pb package pb

View File

@ -2,7 +2,7 @@
// versions: // versions:
// protoc-gen-go v1.26.0 // protoc-gen-go v1.26.0
// protoc v3.21.12 // protoc v3.21.12
// source: kaspawalletd.proto // source: c4exwalletd.proto
package pb package pb
@ -29,7 +29,7 @@ type GetBalanceRequest struct {
func (x *GetBalanceRequest) Reset() { func (x *GetBalanceRequest) Reset() {
*x = GetBalanceRequest{} *x = GetBalanceRequest{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_kaspawalletd_proto_msgTypes[0] mi := &file_c4exwalletd_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -42,7 +42,7 @@ func (x *GetBalanceRequest) String() string {
func (*GetBalanceRequest) ProtoMessage() {} func (*GetBalanceRequest) ProtoMessage() {}
func (x *GetBalanceRequest) ProtoReflect() protoreflect.Message { func (x *GetBalanceRequest) ProtoReflect() protoreflect.Message {
mi := &file_kaspawalletd_proto_msgTypes[0] mi := &file_c4exwalletd_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -55,7 +55,7 @@ func (x *GetBalanceRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetBalanceRequest.ProtoReflect.Descriptor instead. // Deprecated: Use GetBalanceRequest.ProtoReflect.Descriptor instead.
func (*GetBalanceRequest) Descriptor() ([]byte, []int) { func (*GetBalanceRequest) Descriptor() ([]byte, []int) {
return file_kaspawalletd_proto_rawDescGZIP(), []int{0} return file_c4exwalletd_proto_rawDescGZIP(), []int{0}
} }
type GetBalanceResponse struct { type GetBalanceResponse struct {
@ -71,7 +71,7 @@ type GetBalanceResponse struct {
func (x *GetBalanceResponse) Reset() { func (x *GetBalanceResponse) Reset() {
*x = GetBalanceResponse{} *x = GetBalanceResponse{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_kaspawalletd_proto_msgTypes[1] mi := &file_c4exwalletd_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -84,7 +84,7 @@ func (x *GetBalanceResponse) String() string {
func (*GetBalanceResponse) ProtoMessage() {} func (*GetBalanceResponse) ProtoMessage() {}
func (x *GetBalanceResponse) ProtoReflect() protoreflect.Message { func (x *GetBalanceResponse) ProtoReflect() protoreflect.Message {
mi := &file_kaspawalletd_proto_msgTypes[1] mi := &file_c4exwalletd_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -97,7 +97,7 @@ func (x *GetBalanceResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetBalanceResponse.ProtoReflect.Descriptor instead. // Deprecated: Use GetBalanceResponse.ProtoReflect.Descriptor instead.
func (*GetBalanceResponse) Descriptor() ([]byte, []int) { func (*GetBalanceResponse) Descriptor() ([]byte, []int) {
return file_kaspawalletd_proto_rawDescGZIP(), []int{1} return file_c4exwalletd_proto_rawDescGZIP(), []int{1}
} }
func (x *GetBalanceResponse) GetAvailable() uint64 { func (x *GetBalanceResponse) GetAvailable() uint64 {
@ -134,7 +134,7 @@ type AddressBalances struct {
func (x *AddressBalances) Reset() { func (x *AddressBalances) Reset() {
*x = AddressBalances{} *x = AddressBalances{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_kaspawalletd_proto_msgTypes[2] mi := &file_c4exwalletd_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -147,7 +147,7 @@ func (x *AddressBalances) String() string {
func (*AddressBalances) ProtoMessage() {} func (*AddressBalances) ProtoMessage() {}
func (x *AddressBalances) ProtoReflect() protoreflect.Message { func (x *AddressBalances) ProtoReflect() protoreflect.Message {
mi := &file_kaspawalletd_proto_msgTypes[2] mi := &file_c4exwalletd_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -160,7 +160,7 @@ func (x *AddressBalances) ProtoReflect() protoreflect.Message {
// Deprecated: Use AddressBalances.ProtoReflect.Descriptor instead. // Deprecated: Use AddressBalances.ProtoReflect.Descriptor instead.
func (*AddressBalances) Descriptor() ([]byte, []int) { func (*AddressBalances) Descriptor() ([]byte, []int) {
return file_kaspawalletd_proto_rawDescGZIP(), []int{2} return file_c4exwalletd_proto_rawDescGZIP(), []int{2}
} }
func (x *AddressBalances) GetAddress() string { func (x *AddressBalances) GetAddress() string {
@ -199,7 +199,7 @@ type CreateUnsignedTransactionsRequest struct {
func (x *CreateUnsignedTransactionsRequest) Reset() { func (x *CreateUnsignedTransactionsRequest) Reset() {
*x = CreateUnsignedTransactionsRequest{} *x = CreateUnsignedTransactionsRequest{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_kaspawalletd_proto_msgTypes[3] mi := &file_c4exwalletd_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -212,7 +212,7 @@ func (x *CreateUnsignedTransactionsRequest) String() string {
func (*CreateUnsignedTransactionsRequest) ProtoMessage() {} func (*CreateUnsignedTransactionsRequest) ProtoMessage() {}
func (x *CreateUnsignedTransactionsRequest) ProtoReflect() protoreflect.Message { func (x *CreateUnsignedTransactionsRequest) ProtoReflect() protoreflect.Message {
mi := &file_kaspawalletd_proto_msgTypes[3] mi := &file_c4exwalletd_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -225,7 +225,7 @@ func (x *CreateUnsignedTransactionsRequest) ProtoReflect() protoreflect.Message
// Deprecated: Use CreateUnsignedTransactionsRequest.ProtoReflect.Descriptor instead. // Deprecated: Use CreateUnsignedTransactionsRequest.ProtoReflect.Descriptor instead.
func (*CreateUnsignedTransactionsRequest) Descriptor() ([]byte, []int) { func (*CreateUnsignedTransactionsRequest) Descriptor() ([]byte, []int) {
return file_kaspawalletd_proto_rawDescGZIP(), []int{3} return file_c4exwalletd_proto_rawDescGZIP(), []int{3}
} }
func (x *CreateUnsignedTransactionsRequest) GetAddress() string { func (x *CreateUnsignedTransactionsRequest) GetAddress() string {
@ -274,7 +274,7 @@ type CreateUnsignedTransactionsResponse struct {
func (x *CreateUnsignedTransactionsResponse) Reset() { func (x *CreateUnsignedTransactionsResponse) Reset() {
*x = CreateUnsignedTransactionsResponse{} *x = CreateUnsignedTransactionsResponse{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_kaspawalletd_proto_msgTypes[4] mi := &file_c4exwalletd_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -287,7 +287,7 @@ func (x *CreateUnsignedTransactionsResponse) String() string {
func (*CreateUnsignedTransactionsResponse) ProtoMessage() {} func (*CreateUnsignedTransactionsResponse) ProtoMessage() {}
func (x *CreateUnsignedTransactionsResponse) ProtoReflect() protoreflect.Message { func (x *CreateUnsignedTransactionsResponse) ProtoReflect() protoreflect.Message {
mi := &file_kaspawalletd_proto_msgTypes[4] mi := &file_c4exwalletd_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -300,7 +300,7 @@ func (x *CreateUnsignedTransactionsResponse) ProtoReflect() protoreflect.Message
// Deprecated: Use CreateUnsignedTransactionsResponse.ProtoReflect.Descriptor instead. // Deprecated: Use CreateUnsignedTransactionsResponse.ProtoReflect.Descriptor instead.
func (*CreateUnsignedTransactionsResponse) Descriptor() ([]byte, []int) { func (*CreateUnsignedTransactionsResponse) Descriptor() ([]byte, []int) {
return file_kaspawalletd_proto_rawDescGZIP(), []int{4} return file_c4exwalletd_proto_rawDescGZIP(), []int{4}
} }
func (x *CreateUnsignedTransactionsResponse) GetUnsignedTransactions() [][]byte { func (x *CreateUnsignedTransactionsResponse) GetUnsignedTransactions() [][]byte {
@ -319,7 +319,7 @@ type ShowAddressesRequest struct {
func (x *ShowAddressesRequest) Reset() { func (x *ShowAddressesRequest) Reset() {
*x = ShowAddressesRequest{} *x = ShowAddressesRequest{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_kaspawalletd_proto_msgTypes[5] mi := &file_c4exwalletd_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -332,7 +332,7 @@ func (x *ShowAddressesRequest) String() string {
func (*ShowAddressesRequest) ProtoMessage() {} func (*ShowAddressesRequest) ProtoMessage() {}
func (x *ShowAddressesRequest) ProtoReflect() protoreflect.Message { func (x *ShowAddressesRequest) ProtoReflect() protoreflect.Message {
mi := &file_kaspawalletd_proto_msgTypes[5] mi := &file_c4exwalletd_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -345,7 +345,7 @@ func (x *ShowAddressesRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ShowAddressesRequest.ProtoReflect.Descriptor instead. // Deprecated: Use ShowAddressesRequest.ProtoReflect.Descriptor instead.
func (*ShowAddressesRequest) Descriptor() ([]byte, []int) { func (*ShowAddressesRequest) Descriptor() ([]byte, []int) {
return file_kaspawalletd_proto_rawDescGZIP(), []int{5} return file_c4exwalletd_proto_rawDescGZIP(), []int{5}
} }
type ShowAddressesResponse struct { type ShowAddressesResponse struct {
@ -359,7 +359,7 @@ type ShowAddressesResponse struct {
func (x *ShowAddressesResponse) Reset() { func (x *ShowAddressesResponse) Reset() {
*x = ShowAddressesResponse{} *x = ShowAddressesResponse{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_kaspawalletd_proto_msgTypes[6] mi := &file_c4exwalletd_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -372,7 +372,7 @@ func (x *ShowAddressesResponse) String() string {
func (*ShowAddressesResponse) ProtoMessage() {} func (*ShowAddressesResponse) ProtoMessage() {}
func (x *ShowAddressesResponse) ProtoReflect() protoreflect.Message { func (x *ShowAddressesResponse) ProtoReflect() protoreflect.Message {
mi := &file_kaspawalletd_proto_msgTypes[6] mi := &file_c4exwalletd_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -385,7 +385,7 @@ func (x *ShowAddressesResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use ShowAddressesResponse.ProtoReflect.Descriptor instead. // Deprecated: Use ShowAddressesResponse.ProtoReflect.Descriptor instead.
func (*ShowAddressesResponse) Descriptor() ([]byte, []int) { func (*ShowAddressesResponse) Descriptor() ([]byte, []int) {
return file_kaspawalletd_proto_rawDescGZIP(), []int{6} return file_c4exwalletd_proto_rawDescGZIP(), []int{6}
} }
func (x *ShowAddressesResponse) GetAddress() []string { func (x *ShowAddressesResponse) GetAddress() []string {
@ -404,7 +404,7 @@ type NewAddressRequest struct {
func (x *NewAddressRequest) Reset() { func (x *NewAddressRequest) Reset() {
*x = NewAddressRequest{} *x = NewAddressRequest{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_kaspawalletd_proto_msgTypes[7] mi := &file_c4exwalletd_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -417,7 +417,7 @@ func (x *NewAddressRequest) String() string {
func (*NewAddressRequest) ProtoMessage() {} func (*NewAddressRequest) ProtoMessage() {}
func (x *NewAddressRequest) ProtoReflect() protoreflect.Message { func (x *NewAddressRequest) ProtoReflect() protoreflect.Message {
mi := &file_kaspawalletd_proto_msgTypes[7] mi := &file_c4exwalletd_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -430,7 +430,7 @@ func (x *NewAddressRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use NewAddressRequest.ProtoReflect.Descriptor instead. // Deprecated: Use NewAddressRequest.ProtoReflect.Descriptor instead.
func (*NewAddressRequest) Descriptor() ([]byte, []int) { func (*NewAddressRequest) Descriptor() ([]byte, []int) {
return file_kaspawalletd_proto_rawDescGZIP(), []int{7} return file_c4exwalletd_proto_rawDescGZIP(), []int{7}
} }
type NewAddressResponse struct { type NewAddressResponse struct {
@ -444,7 +444,7 @@ type NewAddressResponse struct {
func (x *NewAddressResponse) Reset() { func (x *NewAddressResponse) Reset() {
*x = NewAddressResponse{} *x = NewAddressResponse{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_kaspawalletd_proto_msgTypes[8] mi := &file_c4exwalletd_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -457,7 +457,7 @@ func (x *NewAddressResponse) String() string {
func (*NewAddressResponse) ProtoMessage() {} func (*NewAddressResponse) ProtoMessage() {}
func (x *NewAddressResponse) ProtoReflect() protoreflect.Message { func (x *NewAddressResponse) ProtoReflect() protoreflect.Message {
mi := &file_kaspawalletd_proto_msgTypes[8] mi := &file_c4exwalletd_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -470,7 +470,7 @@ func (x *NewAddressResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use NewAddressResponse.ProtoReflect.Descriptor instead. // Deprecated: Use NewAddressResponse.ProtoReflect.Descriptor instead.
func (*NewAddressResponse) Descriptor() ([]byte, []int) { func (*NewAddressResponse) Descriptor() ([]byte, []int) {
return file_kaspawalletd_proto_rawDescGZIP(), []int{8} return file_c4exwalletd_proto_rawDescGZIP(), []int{8}
} }
func (x *NewAddressResponse) GetAddress() string { func (x *NewAddressResponse) GetAddress() string {
@ -492,7 +492,7 @@ type BroadcastRequest struct {
func (x *BroadcastRequest) Reset() { func (x *BroadcastRequest) Reset() {
*x = BroadcastRequest{} *x = BroadcastRequest{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_kaspawalletd_proto_msgTypes[9] mi := &file_c4exwalletd_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -505,7 +505,7 @@ func (x *BroadcastRequest) String() string {
func (*BroadcastRequest) ProtoMessage() {} func (*BroadcastRequest) ProtoMessage() {}
func (x *BroadcastRequest) ProtoReflect() protoreflect.Message { func (x *BroadcastRequest) ProtoReflect() protoreflect.Message {
mi := &file_kaspawalletd_proto_msgTypes[9] mi := &file_c4exwalletd_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -518,7 +518,7 @@ func (x *BroadcastRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use BroadcastRequest.ProtoReflect.Descriptor instead. // Deprecated: Use BroadcastRequest.ProtoReflect.Descriptor instead.
func (*BroadcastRequest) Descriptor() ([]byte, []int) { func (*BroadcastRequest) Descriptor() ([]byte, []int) {
return file_kaspawalletd_proto_rawDescGZIP(), []int{9} return file_c4exwalletd_proto_rawDescGZIP(), []int{9}
} }
func (x *BroadcastRequest) GetIsDomain() bool { func (x *BroadcastRequest) GetIsDomain() bool {
@ -546,7 +546,7 @@ type BroadcastResponse struct {
func (x *BroadcastResponse) Reset() { func (x *BroadcastResponse) Reset() {
*x = BroadcastResponse{} *x = BroadcastResponse{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_kaspawalletd_proto_msgTypes[10] mi := &file_c4exwalletd_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -559,7 +559,7 @@ func (x *BroadcastResponse) String() string {
func (*BroadcastResponse) ProtoMessage() {} func (*BroadcastResponse) ProtoMessage() {}
func (x *BroadcastResponse) ProtoReflect() protoreflect.Message { func (x *BroadcastResponse) ProtoReflect() protoreflect.Message {
mi := &file_kaspawalletd_proto_msgTypes[10] mi := &file_c4exwalletd_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -572,7 +572,7 @@ func (x *BroadcastResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use BroadcastResponse.ProtoReflect.Descriptor instead. // Deprecated: Use BroadcastResponse.ProtoReflect.Descriptor instead.
func (*BroadcastResponse) Descriptor() ([]byte, []int) { func (*BroadcastResponse) Descriptor() ([]byte, []int) {
return file_kaspawalletd_proto_rawDescGZIP(), []int{10} return file_c4exwalletd_proto_rawDescGZIP(), []int{10}
} }
func (x *BroadcastResponse) GetTxIDs() []string { func (x *BroadcastResponse) GetTxIDs() []string {
@ -591,7 +591,7 @@ type ShutdownRequest struct {
func (x *ShutdownRequest) Reset() { func (x *ShutdownRequest) Reset() {
*x = ShutdownRequest{} *x = ShutdownRequest{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_kaspawalletd_proto_msgTypes[11] mi := &file_c4exwalletd_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -604,7 +604,7 @@ func (x *ShutdownRequest) String() string {
func (*ShutdownRequest) ProtoMessage() {} func (*ShutdownRequest) ProtoMessage() {}
func (x *ShutdownRequest) ProtoReflect() protoreflect.Message { func (x *ShutdownRequest) ProtoReflect() protoreflect.Message {
mi := &file_kaspawalletd_proto_msgTypes[11] mi := &file_c4exwalletd_proto_msgTypes[11]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -617,7 +617,7 @@ func (x *ShutdownRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ShutdownRequest.ProtoReflect.Descriptor instead. // Deprecated: Use ShutdownRequest.ProtoReflect.Descriptor instead.
func (*ShutdownRequest) Descriptor() ([]byte, []int) { func (*ShutdownRequest) Descriptor() ([]byte, []int) {
return file_kaspawalletd_proto_rawDescGZIP(), []int{11} return file_c4exwalletd_proto_rawDescGZIP(), []int{11}
} }
type ShutdownResponse struct { type ShutdownResponse struct {
@ -629,7 +629,7 @@ type ShutdownResponse struct {
func (x *ShutdownResponse) Reset() { func (x *ShutdownResponse) Reset() {
*x = ShutdownResponse{} *x = ShutdownResponse{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_kaspawalletd_proto_msgTypes[12] mi := &file_c4exwalletd_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -642,7 +642,7 @@ func (x *ShutdownResponse) String() string {
func (*ShutdownResponse) ProtoMessage() {} func (*ShutdownResponse) ProtoMessage() {}
func (x *ShutdownResponse) ProtoReflect() protoreflect.Message { func (x *ShutdownResponse) ProtoReflect() protoreflect.Message {
mi := &file_kaspawalletd_proto_msgTypes[12] mi := &file_c4exwalletd_proto_msgTypes[12]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -655,7 +655,7 @@ func (x *ShutdownResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use ShutdownResponse.ProtoReflect.Descriptor instead. // Deprecated: Use ShutdownResponse.ProtoReflect.Descriptor instead.
func (*ShutdownResponse) Descriptor() ([]byte, []int) { func (*ShutdownResponse) Descriptor() ([]byte, []int) {
return file_kaspawalletd_proto_rawDescGZIP(), []int{12} return file_c4exwalletd_proto_rawDescGZIP(), []int{12}
} }
type Outpoint struct { type Outpoint struct {
@ -670,7 +670,7 @@ type Outpoint struct {
func (x *Outpoint) Reset() { func (x *Outpoint) Reset() {
*x = Outpoint{} *x = Outpoint{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_kaspawalletd_proto_msgTypes[13] mi := &file_c4exwalletd_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -683,7 +683,7 @@ func (x *Outpoint) String() string {
func (*Outpoint) ProtoMessage() {} func (*Outpoint) ProtoMessage() {}
func (x *Outpoint) ProtoReflect() protoreflect.Message { func (x *Outpoint) ProtoReflect() protoreflect.Message {
mi := &file_kaspawalletd_proto_msgTypes[13] mi := &file_c4exwalletd_proto_msgTypes[13]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -696,7 +696,7 @@ func (x *Outpoint) ProtoReflect() protoreflect.Message {
// Deprecated: Use Outpoint.ProtoReflect.Descriptor instead. // Deprecated: Use Outpoint.ProtoReflect.Descriptor instead.
func (*Outpoint) Descriptor() ([]byte, []int) { func (*Outpoint) Descriptor() ([]byte, []int) {
return file_kaspawalletd_proto_rawDescGZIP(), []int{13} return file_c4exwalletd_proto_rawDescGZIP(), []int{13}
} }
func (x *Outpoint) GetTransactionId() string { func (x *Outpoint) GetTransactionId() string {
@ -726,7 +726,7 @@ type UtxosByAddressesEntry struct {
func (x *UtxosByAddressesEntry) Reset() { func (x *UtxosByAddressesEntry) Reset() {
*x = UtxosByAddressesEntry{} *x = UtxosByAddressesEntry{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_kaspawalletd_proto_msgTypes[14] mi := &file_c4exwalletd_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -739,7 +739,7 @@ func (x *UtxosByAddressesEntry) String() string {
func (*UtxosByAddressesEntry) ProtoMessage() {} func (*UtxosByAddressesEntry) ProtoMessage() {}
func (x *UtxosByAddressesEntry) ProtoReflect() protoreflect.Message { func (x *UtxosByAddressesEntry) ProtoReflect() protoreflect.Message {
mi := &file_kaspawalletd_proto_msgTypes[14] mi := &file_c4exwalletd_proto_msgTypes[14]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -752,7 +752,7 @@ func (x *UtxosByAddressesEntry) ProtoReflect() protoreflect.Message {
// Deprecated: Use UtxosByAddressesEntry.ProtoReflect.Descriptor instead. // Deprecated: Use UtxosByAddressesEntry.ProtoReflect.Descriptor instead.
func (*UtxosByAddressesEntry) Descriptor() ([]byte, []int) { func (*UtxosByAddressesEntry) Descriptor() ([]byte, []int) {
return file_kaspawalletd_proto_rawDescGZIP(), []int{14} return file_c4exwalletd_proto_rawDescGZIP(), []int{14}
} }
func (x *UtxosByAddressesEntry) GetAddress() string { func (x *UtxosByAddressesEntry) GetAddress() string {
@ -788,7 +788,7 @@ type ScriptPublicKey struct {
func (x *ScriptPublicKey) Reset() { func (x *ScriptPublicKey) Reset() {
*x = ScriptPublicKey{} *x = ScriptPublicKey{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_kaspawalletd_proto_msgTypes[15] mi := &file_c4exwalletd_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -801,7 +801,7 @@ func (x *ScriptPublicKey) String() string {
func (*ScriptPublicKey) ProtoMessage() {} func (*ScriptPublicKey) ProtoMessage() {}
func (x *ScriptPublicKey) ProtoReflect() protoreflect.Message { func (x *ScriptPublicKey) ProtoReflect() protoreflect.Message {
mi := &file_kaspawalletd_proto_msgTypes[15] mi := &file_c4exwalletd_proto_msgTypes[15]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -814,7 +814,7 @@ func (x *ScriptPublicKey) ProtoReflect() protoreflect.Message {
// Deprecated: Use ScriptPublicKey.ProtoReflect.Descriptor instead. // Deprecated: Use ScriptPublicKey.ProtoReflect.Descriptor instead.
func (*ScriptPublicKey) Descriptor() ([]byte, []int) { func (*ScriptPublicKey) Descriptor() ([]byte, []int) {
return file_kaspawalletd_proto_rawDescGZIP(), []int{15} return file_c4exwalletd_proto_rawDescGZIP(), []int{15}
} }
func (x *ScriptPublicKey) GetVersion() uint32 { func (x *ScriptPublicKey) GetVersion() uint32 {
@ -845,7 +845,7 @@ type UtxoEntry struct {
func (x *UtxoEntry) Reset() { func (x *UtxoEntry) Reset() {
*x = UtxoEntry{} *x = UtxoEntry{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_kaspawalletd_proto_msgTypes[16] mi := &file_c4exwalletd_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -858,7 +858,7 @@ func (x *UtxoEntry) String() string {
func (*UtxoEntry) ProtoMessage() {} func (*UtxoEntry) ProtoMessage() {}
func (x *UtxoEntry) ProtoReflect() protoreflect.Message { func (x *UtxoEntry) ProtoReflect() protoreflect.Message {
mi := &file_kaspawalletd_proto_msgTypes[16] mi := &file_c4exwalletd_proto_msgTypes[16]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -871,7 +871,7 @@ func (x *UtxoEntry) ProtoReflect() protoreflect.Message {
// Deprecated: Use UtxoEntry.ProtoReflect.Descriptor instead. // Deprecated: Use UtxoEntry.ProtoReflect.Descriptor instead.
func (*UtxoEntry) Descriptor() ([]byte, []int) { func (*UtxoEntry) Descriptor() ([]byte, []int) {
return file_kaspawalletd_proto_rawDescGZIP(), []int{16} return file_c4exwalletd_proto_rawDescGZIP(), []int{16}
} }
func (x *UtxoEntry) GetAmount() uint64 { func (x *UtxoEntry) GetAmount() uint64 {
@ -913,7 +913,7 @@ type GetExternalSpendableUTXOsRequest struct {
func (x *GetExternalSpendableUTXOsRequest) Reset() { func (x *GetExternalSpendableUTXOsRequest) Reset() {
*x = GetExternalSpendableUTXOsRequest{} *x = GetExternalSpendableUTXOsRequest{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_kaspawalletd_proto_msgTypes[17] mi := &file_c4exwalletd_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -926,7 +926,7 @@ func (x *GetExternalSpendableUTXOsRequest) String() string {
func (*GetExternalSpendableUTXOsRequest) ProtoMessage() {} func (*GetExternalSpendableUTXOsRequest) ProtoMessage() {}
func (x *GetExternalSpendableUTXOsRequest) ProtoReflect() protoreflect.Message { func (x *GetExternalSpendableUTXOsRequest) ProtoReflect() protoreflect.Message {
mi := &file_kaspawalletd_proto_msgTypes[17] mi := &file_c4exwalletd_proto_msgTypes[17]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -939,7 +939,7 @@ func (x *GetExternalSpendableUTXOsRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetExternalSpendableUTXOsRequest.ProtoReflect.Descriptor instead. // Deprecated: Use GetExternalSpendableUTXOsRequest.ProtoReflect.Descriptor instead.
func (*GetExternalSpendableUTXOsRequest) Descriptor() ([]byte, []int) { func (*GetExternalSpendableUTXOsRequest) Descriptor() ([]byte, []int) {
return file_kaspawalletd_proto_rawDescGZIP(), []int{17} return file_c4exwalletd_proto_rawDescGZIP(), []int{17}
} }
func (x *GetExternalSpendableUTXOsRequest) GetAddress() string { func (x *GetExternalSpendableUTXOsRequest) GetAddress() string {
@ -960,7 +960,7 @@ type GetExternalSpendableUTXOsResponse struct {
func (x *GetExternalSpendableUTXOsResponse) Reset() { func (x *GetExternalSpendableUTXOsResponse) Reset() {
*x = GetExternalSpendableUTXOsResponse{} *x = GetExternalSpendableUTXOsResponse{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_kaspawalletd_proto_msgTypes[18] mi := &file_c4exwalletd_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -973,7 +973,7 @@ func (x *GetExternalSpendableUTXOsResponse) String() string {
func (*GetExternalSpendableUTXOsResponse) ProtoMessage() {} func (*GetExternalSpendableUTXOsResponse) ProtoMessage() {}
func (x *GetExternalSpendableUTXOsResponse) ProtoReflect() protoreflect.Message { func (x *GetExternalSpendableUTXOsResponse) ProtoReflect() protoreflect.Message {
mi := &file_kaspawalletd_proto_msgTypes[18] mi := &file_c4exwalletd_proto_msgTypes[18]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -986,7 +986,7 @@ func (x *GetExternalSpendableUTXOsResponse) ProtoReflect() protoreflect.Message
// Deprecated: Use GetExternalSpendableUTXOsResponse.ProtoReflect.Descriptor instead. // Deprecated: Use GetExternalSpendableUTXOsResponse.ProtoReflect.Descriptor instead.
func (*GetExternalSpendableUTXOsResponse) Descriptor() ([]byte, []int) { func (*GetExternalSpendableUTXOsResponse) Descriptor() ([]byte, []int) {
return file_kaspawalletd_proto_rawDescGZIP(), []int{18} return file_c4exwalletd_proto_rawDescGZIP(), []int{18}
} }
func (x *GetExternalSpendableUTXOsResponse) GetEntries() []*UtxosByAddressesEntry { func (x *GetExternalSpendableUTXOsResponse) GetEntries() []*UtxosByAddressesEntry {
@ -1013,7 +1013,7 @@ type SendRequest struct {
func (x *SendRequest) Reset() { func (x *SendRequest) Reset() {
*x = SendRequest{} *x = SendRequest{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_kaspawalletd_proto_msgTypes[19] mi := &file_c4exwalletd_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -1026,7 +1026,7 @@ func (x *SendRequest) String() string {
func (*SendRequest) ProtoMessage() {} func (*SendRequest) ProtoMessage() {}
func (x *SendRequest) ProtoReflect() protoreflect.Message { func (x *SendRequest) ProtoReflect() protoreflect.Message {
mi := &file_kaspawalletd_proto_msgTypes[19] mi := &file_c4exwalletd_proto_msgTypes[19]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -1039,7 +1039,7 @@ func (x *SendRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use SendRequest.ProtoReflect.Descriptor instead. // Deprecated: Use SendRequest.ProtoReflect.Descriptor instead.
func (*SendRequest) Descriptor() ([]byte, []int) { func (*SendRequest) Descriptor() ([]byte, []int) {
return file_kaspawalletd_proto_rawDescGZIP(), []int{19} return file_c4exwalletd_proto_rawDescGZIP(), []int{19}
} }
func (x *SendRequest) GetToAddress() string { func (x *SendRequest) GetToAddress() string {
@ -1096,7 +1096,7 @@ type SendResponse struct {
func (x *SendResponse) Reset() { func (x *SendResponse) Reset() {
*x = SendResponse{} *x = SendResponse{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_kaspawalletd_proto_msgTypes[20] mi := &file_c4exwalletd_proto_msgTypes[20]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -1109,7 +1109,7 @@ func (x *SendResponse) String() string {
func (*SendResponse) ProtoMessage() {} func (*SendResponse) ProtoMessage() {}
func (x *SendResponse) ProtoReflect() protoreflect.Message { func (x *SendResponse) ProtoReflect() protoreflect.Message {
mi := &file_kaspawalletd_proto_msgTypes[20] mi := &file_c4exwalletd_proto_msgTypes[20]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -1122,7 +1122,7 @@ func (x *SendResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use SendResponse.ProtoReflect.Descriptor instead. // Deprecated: Use SendResponse.ProtoReflect.Descriptor instead.
func (*SendResponse) Descriptor() ([]byte, []int) { func (*SendResponse) Descriptor() ([]byte, []int) {
return file_kaspawalletd_proto_rawDescGZIP(), []int{20} return file_c4exwalletd_proto_rawDescGZIP(), []int{20}
} }
func (x *SendResponse) GetTxIDs() []string { func (x *SendResponse) GetTxIDs() []string {
@ -1152,7 +1152,7 @@ type SignRequest struct {
func (x *SignRequest) Reset() { func (x *SignRequest) Reset() {
*x = SignRequest{} *x = SignRequest{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_kaspawalletd_proto_msgTypes[21] mi := &file_c4exwalletd_proto_msgTypes[21]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -1165,7 +1165,7 @@ func (x *SignRequest) String() string {
func (*SignRequest) ProtoMessage() {} func (*SignRequest) ProtoMessage() {}
func (x *SignRequest) ProtoReflect() protoreflect.Message { func (x *SignRequest) ProtoReflect() protoreflect.Message {
mi := &file_kaspawalletd_proto_msgTypes[21] mi := &file_c4exwalletd_proto_msgTypes[21]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -1178,7 +1178,7 @@ func (x *SignRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use SignRequest.ProtoReflect.Descriptor instead. // Deprecated: Use SignRequest.ProtoReflect.Descriptor instead.
func (*SignRequest) Descriptor() ([]byte, []int) { func (*SignRequest) Descriptor() ([]byte, []int) {
return file_kaspawalletd_proto_rawDescGZIP(), []int{21} return file_c4exwalletd_proto_rawDescGZIP(), []int{21}
} }
func (x *SignRequest) GetUnsignedTransactions() [][]byte { func (x *SignRequest) GetUnsignedTransactions() [][]byte {
@ -1206,7 +1206,7 @@ type SignResponse struct {
func (x *SignResponse) Reset() { func (x *SignResponse) Reset() {
*x = SignResponse{} *x = SignResponse{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_kaspawalletd_proto_msgTypes[22] mi := &file_c4exwalletd_proto_msgTypes[22]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -1219,7 +1219,7 @@ func (x *SignResponse) String() string {
func (*SignResponse) ProtoMessage() {} func (*SignResponse) ProtoMessage() {}
func (x *SignResponse) ProtoReflect() protoreflect.Message { func (x *SignResponse) ProtoReflect() protoreflect.Message {
mi := &file_kaspawalletd_proto_msgTypes[22] mi := &file_c4exwalletd_proto_msgTypes[22]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -1232,7 +1232,7 @@ func (x *SignResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use SignResponse.ProtoReflect.Descriptor instead. // Deprecated: Use SignResponse.ProtoReflect.Descriptor instead.
func (*SignResponse) Descriptor() ([]byte, []int) { func (*SignResponse) Descriptor() ([]byte, []int) {
return file_kaspawalletd_proto_rawDescGZIP(), []int{22} return file_c4exwalletd_proto_rawDescGZIP(), []int{22}
} }
func (x *SignResponse) GetSignedTransactions() [][]byte { func (x *SignResponse) GetSignedTransactions() [][]byte {
@ -1242,9 +1242,9 @@ func (x *SignResponse) GetSignedTransactions() [][]byte {
return nil return nil
} }
var File_kaspawalletd_proto protoreflect.FileDescriptor var File_c4exwalletd_proto protoreflect.FileDescriptor
var file_kaspawalletd_proto_rawDesc = []byte{ var file_c4exwalletd_proto_rawDesc = []byte{
0x0a, 0x12, 0x6b, 0x61, 0x73, 0x70, 0x61, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x64, 0x2e, 0x70, 0x0a, 0x12, 0x6b, 0x61, 0x73, 0x70, 0x61, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x64, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x6b, 0x61, 0x73, 0x70, 0x61, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x6b, 0x61, 0x73, 0x70, 0x61, 0x77, 0x61, 0x6c, 0x6c, 0x65,
0x74, 0x64, 0x22, 0x13, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x74, 0x64, 0x22, 0x13, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65,
@ -1430,67 +1430,67 @@ var file_kaspawalletd_proto_rawDesc = []byte{
} }
var ( var (
file_kaspawalletd_proto_rawDescOnce sync.Once file_c4exwalletd_proto_rawDescOnce sync.Once
file_kaspawalletd_proto_rawDescData = file_kaspawalletd_proto_rawDesc file_c4exwalletd_proto_rawDescData = file_c4exwalletd_proto_rawDesc
) )
func file_kaspawalletd_proto_rawDescGZIP() []byte { func file_c4exwalletd_proto_rawDescGZIP() []byte {
file_kaspawalletd_proto_rawDescOnce.Do(func() { file_c4exwalletd_proto_rawDescOnce.Do(func() {
file_kaspawalletd_proto_rawDescData = protoimpl.X.CompressGZIP(file_kaspawalletd_proto_rawDescData) file_c4exwalletd_proto_rawDescData = protoimpl.X.CompressGZIP(file_c4exwalletd_proto_rawDescData)
}) })
return file_kaspawalletd_proto_rawDescData return file_c4exwalletd_proto_rawDescData
} }
var file_kaspawalletd_proto_msgTypes = make([]protoimpl.MessageInfo, 23) var file_c4exwalletd_proto_msgTypes = make([]protoimpl.MessageInfo, 23)
var file_kaspawalletd_proto_goTypes = []interface{}{ var file_c4exwalletd_proto_goTypes = []interface{}{
(*GetBalanceRequest)(nil), // 0: kaspawalletd.GetBalanceRequest (*GetBalanceRequest)(nil), // 0: c4exwalletd.GetBalanceRequest
(*GetBalanceResponse)(nil), // 1: kaspawalletd.GetBalanceResponse (*GetBalanceResponse)(nil), // 1: c4exwalletd.GetBalanceResponse
(*AddressBalances)(nil), // 2: kaspawalletd.AddressBalances (*AddressBalances)(nil), // 2: c4exwalletd.AddressBalances
(*CreateUnsignedTransactionsRequest)(nil), // 3: kaspawalletd.CreateUnsignedTransactionsRequest (*CreateUnsignedTransactionsRequest)(nil), // 3: c4exwalletd.CreateUnsignedTransactionsRequest
(*CreateUnsignedTransactionsResponse)(nil), // 4: kaspawalletd.CreateUnsignedTransactionsResponse (*CreateUnsignedTransactionsResponse)(nil), // 4: c4exwalletd.CreateUnsignedTransactionsResponse
(*ShowAddressesRequest)(nil), // 5: kaspawalletd.ShowAddressesRequest (*ShowAddressesRequest)(nil), // 5: c4exwalletd.ShowAddressesRequest
(*ShowAddressesResponse)(nil), // 6: kaspawalletd.ShowAddressesResponse (*ShowAddressesResponse)(nil), // 6: c4exwalletd.ShowAddressesResponse
(*NewAddressRequest)(nil), // 7: kaspawalletd.NewAddressRequest (*NewAddressRequest)(nil), // 7: c4exwalletd.NewAddressRequest
(*NewAddressResponse)(nil), // 8: kaspawalletd.NewAddressResponse (*NewAddressResponse)(nil), // 8: c4exwalletd.NewAddressResponse
(*BroadcastRequest)(nil), // 9: kaspawalletd.BroadcastRequest (*BroadcastRequest)(nil), // 9: c4exwalletd.BroadcastRequest
(*BroadcastResponse)(nil), // 10: kaspawalletd.BroadcastResponse (*BroadcastResponse)(nil), // 10: c4exwalletd.BroadcastResponse
(*ShutdownRequest)(nil), // 11: kaspawalletd.ShutdownRequest (*ShutdownRequest)(nil), // 11: c4exwalletd.ShutdownRequest
(*ShutdownResponse)(nil), // 12: kaspawalletd.ShutdownResponse (*ShutdownResponse)(nil), // 12: c4exwalletd.ShutdownResponse
(*Outpoint)(nil), // 13: kaspawalletd.Outpoint (*Outpoint)(nil), // 13: c4exwalletd.Outpoint
(*UtxosByAddressesEntry)(nil), // 14: kaspawalletd.UtxosByAddressesEntry (*UtxosByAddressesEntry)(nil), // 14: c4exwalletd.UtxosByAddressesEntry
(*ScriptPublicKey)(nil), // 15: kaspawalletd.ScriptPublicKey (*ScriptPublicKey)(nil), // 15: c4exwalletd.ScriptPublicKey
(*UtxoEntry)(nil), // 16: kaspawalletd.UtxoEntry (*UtxoEntry)(nil), // 16: c4exwalletd.UtxoEntry
(*GetExternalSpendableUTXOsRequest)(nil), // 17: kaspawalletd.GetExternalSpendableUTXOsRequest (*GetExternalSpendableUTXOsRequest)(nil), // 17: c4exwalletd.GetExternalSpendableUTXOsRequest
(*GetExternalSpendableUTXOsResponse)(nil), // 18: kaspawalletd.GetExternalSpendableUTXOsResponse (*GetExternalSpendableUTXOsResponse)(nil), // 18: c4exwalletd.GetExternalSpendableUTXOsResponse
(*SendRequest)(nil), // 19: kaspawalletd.SendRequest (*SendRequest)(nil), // 19: c4exwalletd.SendRequest
(*SendResponse)(nil), // 20: kaspawalletd.SendResponse (*SendResponse)(nil), // 20: c4exwalletd.SendResponse
(*SignRequest)(nil), // 21: kaspawalletd.SignRequest (*SignRequest)(nil), // 21: c4exwalletd.SignRequest
(*SignResponse)(nil), // 22: kaspawalletd.SignResponse (*SignResponse)(nil), // 22: c4exwalletd.SignResponse
} }
var file_kaspawalletd_proto_depIdxs = []int32{ var file_c4exwalletd_proto_depIdxs = []int32{
2, // 0: kaspawalletd.GetBalanceResponse.addressBalances:type_name -> kaspawalletd.AddressBalances 2, // 0: c4exwalletd.GetBalanceResponse.addressBalances:type_name -> c4exwalletd.AddressBalances
13, // 1: kaspawalletd.UtxosByAddressesEntry.outpoint:type_name -> kaspawalletd.Outpoint 13, // 1: c4exwalletd.UtxosByAddressesEntry.outpoint:type_name -> c4exwalletd.Outpoint
16, // 2: kaspawalletd.UtxosByAddressesEntry.utxoEntry:type_name -> kaspawalletd.UtxoEntry 16, // 2: c4exwalletd.UtxosByAddressesEntry.utxoEntry:type_name -> c4exwalletd.UtxoEntry
15, // 3: kaspawalletd.UtxoEntry.scriptPublicKey:type_name -> kaspawalletd.ScriptPublicKey 15, // 3: c4exwalletd.UtxoEntry.scriptPublicKey:type_name -> c4exwalletd.ScriptPublicKey
14, // 4: kaspawalletd.GetExternalSpendableUTXOsResponse.Entries:type_name -> kaspawalletd.UtxosByAddressesEntry 14, // 4: c4exwalletd.GetExternalSpendableUTXOsResponse.Entries:type_name -> c4exwalletd.UtxosByAddressesEntry
0, // 5: kaspawalletd.kaspawalletd.GetBalance:input_type -> kaspawalletd.GetBalanceRequest 0, // 5: c4exwalletd.c4exwalletd.GetBalance:input_type -> c4exwalletd.GetBalanceRequest
17, // 6: kaspawalletd.kaspawalletd.GetExternalSpendableUTXOs:input_type -> kaspawalletd.GetExternalSpendableUTXOsRequest 17, // 6: c4exwalletd.c4exwalletd.GetExternalSpendableUTXOs:input_type -> c4exwalletd.GetExternalSpendableUTXOsRequest
3, // 7: kaspawalletd.kaspawalletd.CreateUnsignedTransactions:input_type -> kaspawalletd.CreateUnsignedTransactionsRequest 3, // 7: c4exwalletd.c4exwalletd.CreateUnsignedTransactions:input_type -> c4exwalletd.CreateUnsignedTransactionsRequest
5, // 8: kaspawalletd.kaspawalletd.ShowAddresses:input_type -> kaspawalletd.ShowAddressesRequest 5, // 8: c4exwalletd.c4exwalletd.ShowAddresses:input_type -> c4exwalletd.ShowAddressesRequest
7, // 9: kaspawalletd.kaspawalletd.NewAddress:input_type -> kaspawalletd.NewAddressRequest 7, // 9: c4exwalletd.c4exwalletd.NewAddress:input_type -> c4exwalletd.NewAddressRequest
11, // 10: kaspawalletd.kaspawalletd.Shutdown:input_type -> kaspawalletd.ShutdownRequest 11, // 10: c4exwalletd.c4exwalletd.Shutdown:input_type -> c4exwalletd.ShutdownRequest
9, // 11: kaspawalletd.kaspawalletd.Broadcast:input_type -> kaspawalletd.BroadcastRequest 9, // 11: c4exwalletd.c4exwalletd.Broadcast:input_type -> c4exwalletd.BroadcastRequest
19, // 12: kaspawalletd.kaspawalletd.Send:input_type -> kaspawalletd.SendRequest 19, // 12: c4exwalletd.c4exwalletd.Send:input_type -> c4exwalletd.SendRequest
21, // 13: kaspawalletd.kaspawalletd.Sign:input_type -> kaspawalletd.SignRequest 21, // 13: c4exwalletd.c4exwalletd.Sign:input_type -> c4exwalletd.SignRequest
1, // 14: kaspawalletd.kaspawalletd.GetBalance:output_type -> kaspawalletd.GetBalanceResponse 1, // 14: c4exwalletd.c4exwalletd.GetBalance:output_type -> c4exwalletd.GetBalanceResponse
18, // 15: kaspawalletd.kaspawalletd.GetExternalSpendableUTXOs:output_type -> kaspawalletd.GetExternalSpendableUTXOsResponse 18, // 15: c4exwalletd.c4exwalletd.GetExternalSpendableUTXOs:output_type -> c4exwalletd.GetExternalSpendableUTXOsResponse
4, // 16: kaspawalletd.kaspawalletd.CreateUnsignedTransactions:output_type -> kaspawalletd.CreateUnsignedTransactionsResponse 4, // 16: c4exwalletd.c4exwalletd.CreateUnsignedTransactions:output_type -> c4exwalletd.CreateUnsignedTransactionsResponse
6, // 17: kaspawalletd.kaspawalletd.ShowAddresses:output_type -> kaspawalletd.ShowAddressesResponse 6, // 17: c4exwalletd.c4exwalletd.ShowAddresses:output_type -> c4exwalletd.ShowAddressesResponse
8, // 18: kaspawalletd.kaspawalletd.NewAddress:output_type -> kaspawalletd.NewAddressResponse 8, // 18: c4exwalletd.c4exwalletd.NewAddress:output_type -> c4exwalletd.NewAddressResponse
12, // 19: kaspawalletd.kaspawalletd.Shutdown:output_type -> kaspawalletd.ShutdownResponse 12, // 19: c4exwalletd.c4exwalletd.Shutdown:output_type -> c4exwalletd.ShutdownResponse
10, // 20: kaspawalletd.kaspawalletd.Broadcast:output_type -> kaspawalletd.BroadcastResponse 10, // 20: c4exwalletd.c4exwalletd.Broadcast:output_type -> c4exwalletd.BroadcastResponse
20, // 21: kaspawalletd.kaspawalletd.Send:output_type -> kaspawalletd.SendResponse 20, // 21: c4exwalletd.c4exwalletd.Send:output_type -> c4exwalletd.SendResponse
22, // 22: kaspawalletd.kaspawalletd.Sign:output_type -> kaspawalletd.SignResponse 22, // 22: c4exwalletd.c4exwalletd.Sign:output_type -> c4exwalletd.SignResponse
14, // [14:23] is the sub-list for method output_type 14, // [14:23] is the sub-list for method output_type
5, // [5:14] is the sub-list for method input_type 5, // [5:14] is the sub-list for method input_type
5, // [5:5] is the sub-list for extension type_name 5, // [5:5] is the sub-list for extension type_name
@ -1498,13 +1498,13 @@ var file_kaspawalletd_proto_depIdxs = []int32{
0, // [0:5] is the sub-list for field type_name 0, // [0:5] is the sub-list for field type_name
} }
func init() { file_kaspawalletd_proto_init() } func init() { file_c4exwalletd_proto_init() }
func file_kaspawalletd_proto_init() { func file_c4exwalletd_proto_init() {
if File_kaspawalletd_proto != nil { if File_c4exwalletd_proto != nil {
return return
} }
if !protoimpl.UnsafeEnabled { if !protoimpl.UnsafeEnabled {
file_kaspawalletd_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { file_c4exwalletd_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetBalanceRequest); i { switch v := v.(*GetBalanceRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -1516,7 +1516,7 @@ func file_kaspawalletd_proto_init() {
return nil return nil
} }
} }
file_kaspawalletd_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { file_c4exwalletd_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetBalanceResponse); i { switch v := v.(*GetBalanceResponse); i {
case 0: case 0:
return &v.state return &v.state
@ -1528,7 +1528,7 @@ func file_kaspawalletd_proto_init() {
return nil return nil
} }
} }
file_kaspawalletd_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { file_c4exwalletd_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AddressBalances); i { switch v := v.(*AddressBalances); i {
case 0: case 0:
return &v.state return &v.state
@ -1540,7 +1540,7 @@ func file_kaspawalletd_proto_init() {
return nil return nil
} }
} }
file_kaspawalletd_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { file_c4exwalletd_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateUnsignedTransactionsRequest); i { switch v := v.(*CreateUnsignedTransactionsRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -1552,7 +1552,7 @@ func file_kaspawalletd_proto_init() {
return nil return nil
} }
} }
file_kaspawalletd_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { file_c4exwalletd_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateUnsignedTransactionsResponse); i { switch v := v.(*CreateUnsignedTransactionsResponse); i {
case 0: case 0:
return &v.state return &v.state
@ -1564,7 +1564,7 @@ func file_kaspawalletd_proto_init() {
return nil return nil
} }
} }
file_kaspawalletd_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { file_c4exwalletd_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ShowAddressesRequest); i { switch v := v.(*ShowAddressesRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -1576,7 +1576,7 @@ func file_kaspawalletd_proto_init() {
return nil return nil
} }
} }
file_kaspawalletd_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { file_c4exwalletd_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ShowAddressesResponse); i { switch v := v.(*ShowAddressesResponse); i {
case 0: case 0:
return &v.state return &v.state
@ -1588,7 +1588,7 @@ func file_kaspawalletd_proto_init() {
return nil return nil
} }
} }
file_kaspawalletd_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { file_c4exwalletd_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*NewAddressRequest); i { switch v := v.(*NewAddressRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -1600,7 +1600,7 @@ func file_kaspawalletd_proto_init() {
return nil return nil
} }
} }
file_kaspawalletd_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { file_c4exwalletd_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*NewAddressResponse); i { switch v := v.(*NewAddressResponse); i {
case 0: case 0:
return &v.state return &v.state
@ -1612,7 +1612,7 @@ func file_kaspawalletd_proto_init() {
return nil return nil
} }
} }
file_kaspawalletd_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { file_c4exwalletd_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BroadcastRequest); i { switch v := v.(*BroadcastRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -1624,7 +1624,7 @@ func file_kaspawalletd_proto_init() {
return nil return nil
} }
} }
file_kaspawalletd_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { file_c4exwalletd_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BroadcastResponse); i { switch v := v.(*BroadcastResponse); i {
case 0: case 0:
return &v.state return &v.state
@ -1636,7 +1636,7 @@ func file_kaspawalletd_proto_init() {
return nil return nil
} }
} }
file_kaspawalletd_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { file_c4exwalletd_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ShutdownRequest); i { switch v := v.(*ShutdownRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -1648,7 +1648,7 @@ func file_kaspawalletd_proto_init() {
return nil return nil
} }
} }
file_kaspawalletd_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { file_c4exwalletd_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ShutdownResponse); i { switch v := v.(*ShutdownResponse); i {
case 0: case 0:
return &v.state return &v.state
@ -1660,7 +1660,7 @@ func file_kaspawalletd_proto_init() {
return nil return nil
} }
} }
file_kaspawalletd_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { file_c4exwalletd_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Outpoint); i { switch v := v.(*Outpoint); i {
case 0: case 0:
return &v.state return &v.state
@ -1672,7 +1672,7 @@ func file_kaspawalletd_proto_init() {
return nil return nil
} }
} }
file_kaspawalletd_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { file_c4exwalletd_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UtxosByAddressesEntry); i { switch v := v.(*UtxosByAddressesEntry); i {
case 0: case 0:
return &v.state return &v.state
@ -1684,7 +1684,7 @@ func file_kaspawalletd_proto_init() {
return nil return nil
} }
} }
file_kaspawalletd_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { file_c4exwalletd_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ScriptPublicKey); i { switch v := v.(*ScriptPublicKey); i {
case 0: case 0:
return &v.state return &v.state
@ -1696,7 +1696,7 @@ func file_kaspawalletd_proto_init() {
return nil return nil
} }
} }
file_kaspawalletd_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { file_c4exwalletd_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UtxoEntry); i { switch v := v.(*UtxoEntry); i {
case 0: case 0:
return &v.state return &v.state
@ -1708,7 +1708,7 @@ func file_kaspawalletd_proto_init() {
return nil return nil
} }
} }
file_kaspawalletd_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { file_c4exwalletd_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetExternalSpendableUTXOsRequest); i { switch v := v.(*GetExternalSpendableUTXOsRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -1720,7 +1720,7 @@ func file_kaspawalletd_proto_init() {
return nil return nil
} }
} }
file_kaspawalletd_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { file_c4exwalletd_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetExternalSpendableUTXOsResponse); i { switch v := v.(*GetExternalSpendableUTXOsResponse); i {
case 0: case 0:
return &v.state return &v.state
@ -1732,7 +1732,7 @@ func file_kaspawalletd_proto_init() {
return nil return nil
} }
} }
file_kaspawalletd_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { file_c4exwalletd_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SendRequest); i { switch v := v.(*SendRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -1744,7 +1744,7 @@ func file_kaspawalletd_proto_init() {
return nil return nil
} }
} }
file_kaspawalletd_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { file_c4exwalletd_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SendResponse); i { switch v := v.(*SendResponse); i {
case 0: case 0:
return &v.state return &v.state
@ -1756,7 +1756,7 @@ func file_kaspawalletd_proto_init() {
return nil return nil
} }
} }
file_kaspawalletd_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { file_c4exwalletd_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SignRequest); i { switch v := v.(*SignRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -1768,7 +1768,7 @@ func file_kaspawalletd_proto_init() {
return nil return nil
} }
} }
file_kaspawalletd_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { file_c4exwalletd_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SignResponse); i { switch v := v.(*SignResponse); i {
case 0: case 0:
return &v.state return &v.state
@ -1785,18 +1785,18 @@ func file_kaspawalletd_proto_init() {
out := protoimpl.TypeBuilder{ out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{ File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_kaspawalletd_proto_rawDesc, RawDescriptor: file_c4exwalletd_proto_rawDesc,
NumEnums: 0, NumEnums: 0,
NumMessages: 23, NumMessages: 23,
NumExtensions: 0, NumExtensions: 0,
NumServices: 1, NumServices: 1,
}, },
GoTypes: file_kaspawalletd_proto_goTypes, GoTypes: file_c4exwalletd_proto_goTypes,
DependencyIndexes: file_kaspawalletd_proto_depIdxs, DependencyIndexes: file_c4exwalletd_proto_depIdxs,
MessageInfos: file_kaspawalletd_proto_msgTypes, MessageInfos: file_c4exwalletd_proto_msgTypes,
}.Build() }.Build()
File_kaspawalletd_proto = out.File File_c4exwalletd_proto = out.File
file_kaspawalletd_proto_rawDesc = nil file_c4exwalletd_proto_rawDesc = nil
file_kaspawalletd_proto_goTypes = nil file_c4exwalletd_proto_goTypes = nil
file_kaspawalletd_proto_depIdxs = nil file_c4exwalletd_proto_depIdxs = nil
} }

View File

@ -1,9 +1,9 @@
syntax = "proto3"; syntax = "proto3";
option go_package = "github.com/c4ei/yunseokyeol/cmd/kaspawallet/daemon/pb"; option go_package = "github.com/c4ei/yunseokyeol/cmd/c4exwallet/daemon/pb";
package kaspawalletd; package c4exwalletd;
service kaspawalletd { service c4exwalletd {
rpc GetBalance (GetBalanceRequest) returns (GetBalanceResponse) {} rpc GetBalance (GetBalanceRequest) returns (GetBalanceResponse) {}
rpc GetExternalSpendableUTXOs (GetExternalSpendableUTXOsRequest) returns (GetExternalSpendableUTXOsResponse) {} rpc GetExternalSpendableUTXOs (GetExternalSpendableUTXOsRequest) returns (GetExternalSpendableUTXOsResponse) {}
rpc CreateUnsignedTransactions (CreateUnsignedTransactionsRequest) returns (CreateUnsignedTransactionsResponse) {} rpc CreateUnsignedTransactions (CreateUnsignedTransactionsRequest) returns (CreateUnsignedTransactionsResponse) {}

View File

@ -31,89 +31,89 @@ type KaspawalletdClient interface {
Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*SignResponse, error) Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*SignResponse, error)
} }
type kaspawalletdClient struct { type c4exwalletdClient struct {
cc grpc.ClientConnInterface cc grpc.ClientConnInterface
} }
func NewKaspawalletdClient(cc grpc.ClientConnInterface) KaspawalletdClient { func NewKaspawalletdClient(cc grpc.ClientConnInterface) KaspawalletdClient {
return &kaspawalletdClient{cc} return &c4exwalletdClient{cc}
} }
func (c *kaspawalletdClient) GetBalance(ctx context.Context, in *GetBalanceRequest, opts ...grpc.CallOption) (*GetBalanceResponse, error) { func (c *c4exwalletdClient) GetBalance(ctx context.Context, in *GetBalanceRequest, opts ...grpc.CallOption) (*GetBalanceResponse, error) {
out := new(GetBalanceResponse) out := new(GetBalanceResponse)
err := c.cc.Invoke(ctx, "/kaspawalletd.kaspawalletd/GetBalance", in, out, opts...) err := c.cc.Invoke(ctx, "/c4exwalletd.c4exwalletd/GetBalance", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
return out, nil return out, nil
} }
func (c *kaspawalletdClient) GetExternalSpendableUTXOs(ctx context.Context, in *GetExternalSpendableUTXOsRequest, opts ...grpc.CallOption) (*GetExternalSpendableUTXOsResponse, error) { func (c *c4exwalletdClient) GetExternalSpendableUTXOs(ctx context.Context, in *GetExternalSpendableUTXOsRequest, opts ...grpc.CallOption) (*GetExternalSpendableUTXOsResponse, error) {
out := new(GetExternalSpendableUTXOsResponse) out := new(GetExternalSpendableUTXOsResponse)
err := c.cc.Invoke(ctx, "/kaspawalletd.kaspawalletd/GetExternalSpendableUTXOs", in, out, opts...) err := c.cc.Invoke(ctx, "/c4exwalletd.c4exwalletd/GetExternalSpendableUTXOs", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
return out, nil return out, nil
} }
func (c *kaspawalletdClient) CreateUnsignedTransactions(ctx context.Context, in *CreateUnsignedTransactionsRequest, opts ...grpc.CallOption) (*CreateUnsignedTransactionsResponse, error) { func (c *c4exwalletdClient) CreateUnsignedTransactions(ctx context.Context, in *CreateUnsignedTransactionsRequest, opts ...grpc.CallOption) (*CreateUnsignedTransactionsResponse, error) {
out := new(CreateUnsignedTransactionsResponse) out := new(CreateUnsignedTransactionsResponse)
err := c.cc.Invoke(ctx, "/kaspawalletd.kaspawalletd/CreateUnsignedTransactions", in, out, opts...) err := c.cc.Invoke(ctx, "/c4exwalletd.c4exwalletd/CreateUnsignedTransactions", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
return out, nil return out, nil
} }
func (c *kaspawalletdClient) ShowAddresses(ctx context.Context, in *ShowAddressesRequest, opts ...grpc.CallOption) (*ShowAddressesResponse, error) { func (c *c4exwalletdClient) ShowAddresses(ctx context.Context, in *ShowAddressesRequest, opts ...grpc.CallOption) (*ShowAddressesResponse, error) {
out := new(ShowAddressesResponse) out := new(ShowAddressesResponse)
err := c.cc.Invoke(ctx, "/kaspawalletd.kaspawalletd/ShowAddresses", in, out, opts...) err := c.cc.Invoke(ctx, "/c4exwalletd.c4exwalletd/ShowAddresses", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
return out, nil return out, nil
} }
func (c *kaspawalletdClient) NewAddress(ctx context.Context, in *NewAddressRequest, opts ...grpc.CallOption) (*NewAddressResponse, error) { func (c *c4exwalletdClient) NewAddress(ctx context.Context, in *NewAddressRequest, opts ...grpc.CallOption) (*NewAddressResponse, error) {
out := new(NewAddressResponse) out := new(NewAddressResponse)
err := c.cc.Invoke(ctx, "/kaspawalletd.kaspawalletd/NewAddress", in, out, opts...) err := c.cc.Invoke(ctx, "/c4exwalletd.c4exwalletd/NewAddress", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
return out, nil return out, nil
} }
func (c *kaspawalletdClient) Shutdown(ctx context.Context, in *ShutdownRequest, opts ...grpc.CallOption) (*ShutdownResponse, error) { func (c *c4exwalletdClient) Shutdown(ctx context.Context, in *ShutdownRequest, opts ...grpc.CallOption) (*ShutdownResponse, error) {
out := new(ShutdownResponse) out := new(ShutdownResponse)
err := c.cc.Invoke(ctx, "/kaspawalletd.kaspawalletd/Shutdown", in, out, opts...) err := c.cc.Invoke(ctx, "/c4exwalletd.c4exwalletd/Shutdown", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
return out, nil return out, nil
} }
func (c *kaspawalletdClient) Broadcast(ctx context.Context, in *BroadcastRequest, opts ...grpc.CallOption) (*BroadcastResponse, error) { func (c *c4exwalletdClient) Broadcast(ctx context.Context, in *BroadcastRequest, opts ...grpc.CallOption) (*BroadcastResponse, error) {
out := new(BroadcastResponse) out := new(BroadcastResponse)
err := c.cc.Invoke(ctx, "/kaspawalletd.kaspawalletd/Broadcast", in, out, opts...) err := c.cc.Invoke(ctx, "/c4exwalletd.c4exwalletd/Broadcast", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
return out, nil return out, nil
} }
func (c *kaspawalletdClient) Send(ctx context.Context, in *SendRequest, opts ...grpc.CallOption) (*SendResponse, error) { func (c *c4exwalletdClient) Send(ctx context.Context, in *SendRequest, opts ...grpc.CallOption) (*SendResponse, error) {
out := new(SendResponse) out := new(SendResponse)
err := c.cc.Invoke(ctx, "/kaspawalletd.kaspawalletd/Send", in, out, opts...) err := c.cc.Invoke(ctx, "/c4exwalletd.c4exwalletd/Send", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
return out, nil return out, nil
} }
func (c *kaspawalletdClient) Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*SignResponse, error) { func (c *c4exwalletdClient) Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*SignResponse, error) {
out := new(SignResponse) out := new(SignResponse)
err := c.cc.Invoke(ctx, "/kaspawalletd.kaspawalletd/Sign", in, out, opts...) err := c.cc.Invoke(ctx, "/c4exwalletd.c4exwalletd/Sign", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
@ -192,7 +192,7 @@ func _Kaspawalletd_GetBalance_Handler(srv interface{}, ctx context.Context, dec
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: "/kaspawalletd.kaspawalletd/GetBalance", FullMethod: "/c4exwalletd.c4exwalletd/GetBalance",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(KaspawalletdServer).GetBalance(ctx, req.(*GetBalanceRequest)) return srv.(KaspawalletdServer).GetBalance(ctx, req.(*GetBalanceRequest))
@ -210,7 +210,7 @@ func _Kaspawalletd_GetExternalSpendableUTXOs_Handler(srv interface{}, ctx contex
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: "/kaspawalletd.kaspawalletd/GetExternalSpendableUTXOs", FullMethod: "/c4exwalletd.c4exwalletd/GetExternalSpendableUTXOs",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(KaspawalletdServer).GetExternalSpendableUTXOs(ctx, req.(*GetExternalSpendableUTXOsRequest)) return srv.(KaspawalletdServer).GetExternalSpendableUTXOs(ctx, req.(*GetExternalSpendableUTXOsRequest))
@ -228,7 +228,7 @@ func _Kaspawalletd_CreateUnsignedTransactions_Handler(srv interface{}, ctx conte
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: "/kaspawalletd.kaspawalletd/CreateUnsignedTransactions", FullMethod: "/c4exwalletd.c4exwalletd/CreateUnsignedTransactions",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(KaspawalletdServer).CreateUnsignedTransactions(ctx, req.(*CreateUnsignedTransactionsRequest)) return srv.(KaspawalletdServer).CreateUnsignedTransactions(ctx, req.(*CreateUnsignedTransactionsRequest))
@ -246,7 +246,7 @@ func _Kaspawalletd_ShowAddresses_Handler(srv interface{}, ctx context.Context, d
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: "/kaspawalletd.kaspawalletd/ShowAddresses", FullMethod: "/c4exwalletd.c4exwalletd/ShowAddresses",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(KaspawalletdServer).ShowAddresses(ctx, req.(*ShowAddressesRequest)) return srv.(KaspawalletdServer).ShowAddresses(ctx, req.(*ShowAddressesRequest))
@ -264,7 +264,7 @@ func _Kaspawalletd_NewAddress_Handler(srv interface{}, ctx context.Context, dec
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: "/kaspawalletd.kaspawalletd/NewAddress", FullMethod: "/c4exwalletd.c4exwalletd/NewAddress",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(KaspawalletdServer).NewAddress(ctx, req.(*NewAddressRequest)) return srv.(KaspawalletdServer).NewAddress(ctx, req.(*NewAddressRequest))
@ -282,7 +282,7 @@ func _Kaspawalletd_Shutdown_Handler(srv interface{}, ctx context.Context, dec fu
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: "/kaspawalletd.kaspawalletd/Shutdown", FullMethod: "/c4exwalletd.c4exwalletd/Shutdown",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(KaspawalletdServer).Shutdown(ctx, req.(*ShutdownRequest)) return srv.(KaspawalletdServer).Shutdown(ctx, req.(*ShutdownRequest))
@ -300,7 +300,7 @@ func _Kaspawalletd_Broadcast_Handler(srv interface{}, ctx context.Context, dec f
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: "/kaspawalletd.kaspawalletd/Broadcast", FullMethod: "/c4exwalletd.c4exwalletd/Broadcast",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(KaspawalletdServer).Broadcast(ctx, req.(*BroadcastRequest)) return srv.(KaspawalletdServer).Broadcast(ctx, req.(*BroadcastRequest))
@ -318,7 +318,7 @@ func _Kaspawalletd_Send_Handler(srv interface{}, ctx context.Context, dec func(i
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: "/kaspawalletd.kaspawalletd/Send", FullMethod: "/c4exwalletd.c4exwalletd/Send",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(KaspawalletdServer).Send(ctx, req.(*SendRequest)) return srv.(KaspawalletdServer).Send(ctx, req.(*SendRequest))
@ -336,7 +336,7 @@ func _Kaspawalletd_Sign_Handler(srv interface{}, ctx context.Context, dec func(i
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: "/kaspawalletd.kaspawalletd/Sign", FullMethod: "/c4exwalletd.c4exwalletd/Sign",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(KaspawalletdServer).Sign(ctx, req.(*SignRequest)) return srv.(KaspawalletdServer).Sign(ctx, req.(*SignRequest))
@ -348,7 +348,7 @@ func _Kaspawalletd_Sign_Handler(srv interface{}, ctx context.Context, dec func(i
// It's only intended for direct use with grpc.RegisterService, // It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy) // and not to be introspected or modified (even as a copy)
var Kaspawalletd_ServiceDesc = grpc.ServiceDesc{ var Kaspawalletd_ServiceDesc = grpc.ServiceDesc{
ServiceName: "kaspawalletd.kaspawalletd", ServiceName: "c4exwalletd.c4exwalletd",
HandlerType: (*KaspawalletdServer)(nil), HandlerType: (*KaspawalletdServer)(nil),
Methods: []grpc.MethodDesc{ Methods: []grpc.MethodDesc{
{ {
@ -389,5 +389,5 @@ var Kaspawalletd_ServiceDesc = grpc.ServiceDesc{
}, },
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "kaspawalletd.proto", Metadata: "c4exwalletd.proto",
} }

View File

@ -4,8 +4,8 @@ import (
"context" "context"
"fmt" "fmt"
"github.com/c4ei/yunseokyeol/cmd/kaspawallet/daemon/pb" "github.com/c4ei/yunseokyeol/cmd/c4exwallet/daemon/pb"
"github.com/c4ei/yunseokyeol/cmd/kaspawallet/libkaspawallet" "github.com/c4ei/yunseokyeol/cmd/c4exwallet/libc4exwallet"
"github.com/c4ei/yunseokyeol/util" "github.com/c4ei/yunseokyeol/util"
"github.com/pkg/errors" "github.com/pkg/errors"
) )
@ -33,12 +33,12 @@ func (s *server) changeAddress(useExisting bool, fromAddresses []*walletAddress)
walletAddr = &walletAddress{ walletAddr = &walletAddress{
index: internalIndex, index: internalIndex,
cosignerIndex: s.keysFile.CosignerIndex, cosignerIndex: s.keysFile.CosignerIndex,
keyChain: libkaspawallet.InternalKeychain, keyChain: libc4exwallet.InternalKeychain,
} }
} }
path := s.walletAddressPath(walletAddr) path := s.walletAddressPath(walletAddr)
address, err := libkaspawallet.Address(s.params, s.keysFile.ExtendedPublicKeys, s.keysFile.MinimumSignatures, path, s.keysFile.ECDSA) address, err := libc4exwallet.Address(s.params, s.keysFile.ExtendedPublicKeys, s.keysFile.MinimumSignatures, path, s.keysFile.ECDSA)
if err != nil { if err != nil {
return nil, nil, err return nil, nil, err
} }
@ -58,10 +58,10 @@ func (s *server) ShowAddresses(_ context.Context, request *pb.ShowAddressesReque
walletAddr := &walletAddress{ walletAddr := &walletAddress{
index: i, index: i,
cosignerIndex: s.keysFile.CosignerIndex, cosignerIndex: s.keysFile.CosignerIndex,
keyChain: libkaspawallet.ExternalKeychain, keyChain: libc4exwallet.ExternalKeychain,
} }
path := s.walletAddressPath(walletAddr) path := s.walletAddressPath(walletAddr)
address, err := libkaspawallet.Address(s.params, s.keysFile.ExtendedPublicKeys, s.keysFile.MinimumSignatures, path, s.keysFile.ECDSA) address, err := libc4exwallet.Address(s.params, s.keysFile.ExtendedPublicKeys, s.keysFile.MinimumSignatures, path, s.keysFile.ECDSA)
if err != nil { if err != nil {
return nil, err return nil, err
} }
@ -92,10 +92,10 @@ func (s *server) NewAddress(_ context.Context, request *pb.NewAddressRequest) (*
walletAddr := &walletAddress{ walletAddr := &walletAddress{
index: s.keysFile.LastUsedExternalIndex(), index: s.keysFile.LastUsedExternalIndex(),
cosignerIndex: s.keysFile.CosignerIndex, cosignerIndex: s.keysFile.CosignerIndex,
keyChain: libkaspawallet.ExternalKeychain, keyChain: libc4exwallet.ExternalKeychain,
} }
path := s.walletAddressPath(walletAddr) path := s.walletAddressPath(walletAddr)
address, err := libkaspawallet.Address(s.params, s.keysFile.ExtendedPublicKeys, s.keysFile.MinimumSignatures, path, s.keysFile.ECDSA) address, err := libc4exwallet.Address(s.params, s.keysFile.ExtendedPublicKeys, s.keysFile.MinimumSignatures, path, s.keysFile.ECDSA)
if err != nil { if err != nil {
return nil, err return nil, err
} }
@ -105,7 +105,7 @@ func (s *server) NewAddress(_ context.Context, request *pb.NewAddressRequest) (*
func (s *server) walletAddressString(wAddr *walletAddress) (string, error) { func (s *server) walletAddressString(wAddr *walletAddress) (string, error) {
path := s.walletAddressPath(wAddr) path := s.walletAddressPath(wAddr)
addr, err := libkaspawallet.Address(s.params, s.keysFile.ExtendedPublicKeys, s.keysFile.MinimumSignatures, path, s.keysFile.ECDSA) addr, err := libc4exwallet.Address(s.params, s.keysFile.ExtendedPublicKeys, s.keysFile.MinimumSignatures, path, s.keysFile.ECDSA)
if err != nil { if err != nil {
return "", err return "", err
} }

View File

@ -3,8 +3,8 @@ package server
import ( import (
"context" "context"
"github.com/c4ei/yunseokyeol/cmd/kaspawallet/daemon/pb" "github.com/c4ei/yunseokyeol/cmd/c4exwallet/daemon/pb"
"github.com/c4ei/yunseokyeol/cmd/kaspawallet/libkaspawallet" "github.com/c4ei/yunseokyeol/cmd/c4exwallet/libc4exwallet"
) )
type balancesType struct{ available, pending uint64 } type balancesType struct{ available, pending uint64 }
@ -41,7 +41,7 @@ func (s *server) GetBalance(_ context.Context, _ *pb.GetBalanceRequest) (*pb.Get
i := 0 i := 0
var available, pending uint64 var available, pending uint64
for walletAddress, balances := range balancesMap { for walletAddress, balances := range balancesMap {
address, err := libkaspawallet.Address(s.params, s.keysFile.ExtendedPublicKeys, s.keysFile.MinimumSignatures, s.walletAddressPath(walletAddress), s.keysFile.ECDSA) address, err := libc4exwallet.Address(s.params, s.keysFile.ExtendedPublicKeys, s.keysFile.MinimumSignatures, s.walletAddressPath(walletAddress), s.keysFile.ECDSA)
if err != nil { if err != nil {
return nil, err return nil, err
} }

View File

@ -5,9 +5,9 @@ import (
"time" "time"
"github.com/c4ei/yunseokyeol/app/appmessage" "github.com/c4ei/yunseokyeol/app/appmessage"
"github.com/c4ei/yunseokyeol/cmd/kaspawallet/daemon/pb" "github.com/c4ei/yunseokyeol/cmd/c4exwallet/daemon/pb"
"github.com/c4ei/yunseokyeol/cmd/kaspawallet/libkaspawallet" "github.com/c4ei/yunseokyeol/cmd/c4exwallet/libc4exwallet"
"github.com/c4ei/yunseokyeol/cmd/kaspawallet/libkaspawallet/serialization" "github.com/c4ei/yunseokyeol/cmd/c4exwallet/libc4exwallet/serialization"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi" "github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/infrastructure/network/rpcclient" "github.com/c4ei/yunseokyeol/infrastructure/network/rpcclient"
"github.com/pkg/errors" "github.com/pkg/errors"
@ -39,7 +39,7 @@ func (s *server) broadcast(transactions [][]byte, isDomain bool) ([]string, erro
return nil, err return nil, err
} }
} else if !isDomain { //default in proto3 is false } else if !isDomain { //default in proto3 is false
tx, err = libkaspawallet.ExtractTransaction(transaction, s.keysFile.ECDSA) tx, err = libc4exwallet.ExtractTransaction(transaction, s.keysFile.ECDSA)
if err != nil { if err != nil {
return nil, err return nil, err
} }

Some files were not shown because too many files have changed in this diff Show More