![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
github.com/ltcsuite/btcd
ltcd is a full node litecoin implementation written in Go, licensed under the copyfree ISC License.
This project is currently under active development and is in a Beta state. It is extremely stable and has been in production use since prior December 2018.
It properly downloads, validates, and serves the block chain using the exact rules (including consensus bugs) for block acceptance as Litecoin Core. We have taken great care to avoid ltcd causing a fork to the block chain. It includes a full block validation testing framework which contains all of the 'official' block acceptance tests (and some additional ones) that is run on every pull request to help ensure it properly follows consensus. Also, it passes all of the JSON test data in the Litecoin Core code.
It also properly relays newly mined blocks, maintains a transaction pool, and relays individual transactions that have not yet made it into a block. It ensures all individual transactions admitted to the pool follow the rules required by the block chain and also includes more strict checks which filter transactions based on miner requirements ("standard" transactions).
One key difference between ltcd and Litecoin Core is that ltcd does NOT include wallet functionality and this was a very intentional design decision. See the blog entry here for more details. This means you can't actually make or receive payments directly with ltcd. That functionality is provided by the ltcwallet which is under active development.
Go 1.17 or newer.
2.1 Installation
The first step is to install ltcd. See one of the following sections for details on how to install on the supported operating systems.
2.1.1 Windows Installation
2.1.2 Linux/BSD/MacOSX/POSIX Installation
Install Go according to the installation instructions here: http://go.dev/doc/install
Ensure Go was installed properly and is a supported version:
$ go version
$ go env GOROOT GOPATH
NOTE: The GOROOT
and GOPATH
above must not be the same path. It is
recommended that GOPATH
is set to a directory in your home directory such as
~/goprojects
to avoid write permission issues. It is also recommended to add
$GOPATH/bin
to your PATH
at this point.
$ git clone https://github.com/ltcsuite/ltcd
$ cd ltcd
$ GO111MODULE=on go install -v . ./cmd/...
$GOPATH/bin
. If you did
not already add the bin directory to your system path during Go installation,
we recommend you do so now.Updating
$ cd ltcd
$ git pull
$ GO111MODULE=on go install -v . ./cmd/...
2.2 Configuration
ltcd has a number of configuration
options, which can be viewed by running: $ ltcd --help
.
2.3 Controlling and Querying ltcd via ltcctl
ltcctl is a command line utility that can be used to both control and query ltcd via RPC. ltcd does not enable its RPC server by default; You must configure at minimum both an RPC username and password or both an RPC limited username and password:
[Application Options]
rpcuser=myuser
rpcpass=SomeDecentp4ssw0rd
rpclimituser=mylimituser
rpclimitpass=Limitedp4ssw0rd
[Application Options]
rpcuser=myuser
rpcpass=SomeDecentp4ssw0rd
OR
[Application Options]
rpclimituser=mylimituser
rpclimitpass=Limitedp4ssw0rd
For a list of available options, run: $ ltcctl --help
2.4 Mining
ltcd supports the getblocktemplate
RPC.
The limited user cannot access this RPC.
1. Add the payment addresses with the miningaddr
option.
[Application Options]
rpcuser=myuser
rpcpass=SomeDecentp4ssw0rd
miningaddr=12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX
miningaddr=1M83ju3EChKYyysmM2FXtLNftbacagd8FR
2. Add ltcd's RPC TLS certificate to system Certificate Authority list.
cgminer
uses curl to fetch data from the RPC server.
Since curl validates the certificate by default, we must install the ltcd
RPC
certificate into the default system Certificate Authority list.
Ubuntu
# cp /home/user/.ltcd/rpc.cert /usr/share/ca-certificates/ltcd.crt
# echo ltcd.crt >> /etc/ca-certificates.conf
# update-ca-certificates
3. Set your mining software url to use https.
$ cgminer -o https://127.0.0.1:9334 -u rpcuser -p rpcpassword
3.1 Startup
Typically ltcd will run and start downloading the block chain with no extra
configuration necessary, however, there is an optional method to use a
bootstrap.dat
file that may speed up the initial block chain download process.
3.1.1 bootstrap.dat
3.1.2 Network Configuration
3.1 Wallet
ltcd was intentionally developed without an integrated wallet for security reasons. Please see ltcwallet for more information.
4.1 Email
wire/blockheader.go
- declare PowHash method (for scrypt) used instead of BlockHashblockchain/difficulty.go
- blocksPerRetarget change for Zeitgeist2 attackblockchain/validate.go
- use PowHash (for scrypt) used instead of BlockHashmempool/policy.go
- adjust minDustFee (litecoin v0.21 rate)mining/cpuminer/cpu_miner.go
- use PowHash (for scrypt) used instead of BlockHashwire/protocol.go
- ProtocolVersion uses 70016; MainNet magic number is different; TestNet4 is used instead of TestNet3; Remove Bitcoin softfork service flags & replace with NODE_NETWORK_LIMITED
and NODE_MWEB
flags.example_test.go
- litecoin address used instead of bitcoin addresswire/msgtx.go
- litecoin MWEB txs are fully deserialsised and consumed.wire/msgblock.go
- litecoin MWEB blocks are fully parsedltcutil/address.go
- fix address decoding, ltc1
and L
prefixes decoded correctlyltcutil/amount.go
- use Math.round() for rounding amounts - fixing float64 overflowsrpcserver.go
- signed message header is "Litecoin Signed Message:\n"
.FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.