Roman Khimov
46c02de2f3
_pkg.dev: drop server
...
Nothing useful here for master, it has it all implemented already. Refs. #307 .
2019-09-02 17:40:53 +03:00
Roman Khimov
eb95758ddc
_pkg.dev: drop connmgr
...
I don't think it's of any use for us now. Refs. #307 .
2019-09-02 17:37:48 +03:00
Roman Khimov
5bdf3682ed
_pkg.dev: drop chaincfg package
...
It's just a wrapper around hardcoded genesis block, we don't need it.
2019-09-02 10:10:31 +03:00
Roman Khimov
973d39eceb
_pkg.dev: drop wire
...
Nothing interesting left here, thanks. Refs. #307 .
2019-08-30 19:45:39 +03:00
Roman Khimov
6767bb5446
transaction: move state test from dev
2019-08-30 19:35:57 +03:00
Roman Khimov
868c9d6e8c
transaction: add miner tx test from dev
2019-08-30 18:53:26 +03:00
Roman Khimov
88a47aeeb4
transaction: move enrollment test from dev into the master
2019-08-30 18:28:12 +03:00
Roman Khimov
aa94ae70b6
transaction: move and adapt test from dev
...
Slightly increases coverage for transaction package.
2019-08-30 18:23:53 +03:00
Roman Khimov
055616a18d
_pkg.dev: drop zero-payload mmempool and mverack from payload, useless
2019-08-30 13:34:55 +03:00
Roman Khimov
a5566841fe
_pkg.dev: drop useless mgetdata from payload
2019-08-30 13:15:20 +03:00
Roman Khimov
db39149b3d
_pkg.dev: drop mgetaddr "implementation"
...
It has no real payload, so all of this is just useless.
2019-08-30 11:46:39 +03:00
Roman Khimov
45d94ee8c6
_pkg.dev: drop mblock wrapper
...
No use for us.
2019-08-30 11:42:25 +03:00
Roman Khimov
17679c3b94
core: add block test from dev branch
...
And drop it from _pkg.dev. Adapted for master.
2019-08-30 11:41:10 +03:00
Roman Khimov
0ff38e9645
_pkg.dev: drop blockbase from payload
...
Duplicated in core.
2019-08-30 11:41:10 +03:00
Roman Khimov
e03eac9dcc
payload: move one test from dev for inventory
...
And drop it from the _pkg.dev.
2019-08-30 11:41:10 +03:00
Roman Khimov
f636bb9b6e
payload: extend headers test, add limit
...
... from _pkg.dev and drop headers parsing there.
2019-08-30 11:41:10 +03:00
Roman Khimov
01e2f32e47
_pkg.dev: drop mgetheaders from payload
...
Refs. #307 .
2019-08-29 21:23:57 +03:00
Roman Khimov
b5813efb29
_pkg.dev: drop mgetblocks code
2019-08-29 21:23:57 +03:00
Roman Khimov
9d8024a9dd
_pkg.dev: drop address payload implementation
...
Refs. #307 .
2019-08-29 21:23:57 +03:00
Roman Khimov
26eee620ec
_pkg.dev: drop version from payload
...
Nothing new for us here.
2019-08-29 21:23:57 +03:00
Roman Khimov
ad2cd15c6c
_pkg.dev: drop the last wire/util code
...
SumSHA256() and ReaderToBuffer() are not used, CalculateHash() shouldn't be
used and BufferLength() is just to easy with only one user.
2019-08-28 13:09:03 +03:00
Roman Khimov
6409cc753c
util: move binaryReader/Writer from _pkg.dev
...
These are useful and nice.
2019-08-28 12:44:23 +03:00
Roman Khimov
0f265a6a04
_pkg.dev: drop wire/command
...
Transferring some missing commands to pkg/network.
2019-08-27 20:08:48 +03:00
Roman Khimov
e89e78159b
_pkg.dev: drop wire/protocol package
...
Move service definitions from it into version (just to save them), but other
than that it's useless for master that has configs ruling the networks.
2019-08-27 19:56:12 +03:00
Roman Khimov
b77e533d13
crypto/wallet: move public/private key into the new keys package
...
And drop associated _pkg.dev remnants (refs. #307 ).
Original `dev` branch had two separate packages for public and private keys,
but those are so intertwined (`TestHelper` subpackage is a proof) that it's
better unite them and all associated code (like WIF and NEP-2) in one
package. This patch also:
* creates internal `keytestcases` package to share things with wallet (maybe
it'll be changed in some future)
* ports some tests from `dev`
* ports Verify() method for public key from `dev`
* expands TestPrivateKey() with public key check
2019-08-27 17:45:51 +03:00
Roman Khimov
b19190b32f
_pkg.dev: drop crypto/elliptic
...
It's the same implementation that we have in pkg/crypto (based on
https://github.com/vsergeev/btckeygenie ) but with tests preserved. I don't see
any reason to port tests from it because even the pkg/crypto copy should go
away to fix #245 .
2019-08-27 17:09:24 +03:00
Roman Khimov
2275b9e4ad
_pkg.dev: drop address pkg, move test into crypto
...
address wrappers don't seem to fit well into master's code, so just drop 'em,
but pick the testing function with good known input/output pair.
2019-08-27 17:09:24 +03:00
Roman Khimov
d7701fe7db
_pkg.dev: drop util/ip package
...
It's an unneccessary kludge, master gets its IP from config and that's it.
2019-08-27 17:09:24 +03:00
Roman Khimov
5938ebb85b
_pkg.dev: drop util/io package
...
Unused.
2019-08-27 17:09:24 +03:00
Roman Khimov
10d5605166
_pkg.dev: drop Checksum package
...
Duplicates hash.Checksum slightly and doesn't seem to fit into master
well.
2019-08-27 17:09:24 +03:00
Evgeniy Kulikov
78cf3e9c5f
Use our RFC6979 fork
...
- prepare fork
- update go-modules
- update dependencies
2019-08-27 13:07:02 +03:00
Roman Khimov
7165b5ab1e
base58: add testing from _pkg.dev
...
And drop implementation in _pkg.dev, as it's redundant. Refs. #307 .
2019-08-26 13:32:19 +03:00
Roman Khimov
5c5878968b
hask: import package from _pkg.dev, make it compile
2019-08-26 13:32:19 +03:00
Roman Khimov
37be2e215c
array: add a test for even num of elements
...
And drop duplicating code from _pkg.dev.
2019-08-26 13:32:19 +03:00
Roman Khimov
20a4ad99b3
fixed8: add some testcases from dev, split Value functions
...
Add FloatValue() and rename Value() to Int64Value() for consistency.
2019-08-26 13:32:19 +03:00
Roman Khimov
d5d570f793
uint256: add Reverse(), change String() to be BE
...
This one makes a little more obvious that we're operating with LE
representations mostly. Refs. #307 . See #314 also.
2019-08-26 13:32:19 +03:00
Roman Khimov
c1b1b6fca4
uint160: move ReverseString() from _pkg.dev
...
With associated test and drop duplicating Uint160 implementation from
_pkg.dev. It doesn't seem to be used in pkg code at the moment, but still it
can be useful. Refs #307 .
2019-08-26 13:32:19 +03:00
Roman Khimov
bc0a4671d4
_pkg.dev: drop crypto/aes, refs #307
...
Duplicated by pkg/crypto/aes256.go.
2019-08-23 19:29:09 +03:00
Roman Khimov
4640394aca
_pkg.dev: drop internal rfc6979 package
...
Reuse anthdm/rfc6979. Closes #285 .
2019-08-23 19:29:09 +03:00
Roman Khimov
ddd1d92ff1
pkg: hide it by moving to _pkg.dev
...
The idea here is to preserve the history of `dev` branch development and its
code when merging with the `master`. Later this code could be moved into the
masters code where appropriate.
2019-08-20 18:39:50 +03:00