Commit Graph

418 Commits

Author SHA1 Message Date
Gav Wood 5423797ce4 Build fix. 2016-01-06 14:06:34 +01:00
Gav Wood 398231f9a7 Additional missing struct stuff. 2016-01-06 13:59:48 +01:00
Gav Wood be7bfd51a7 Merge branch 'master' into gav 2016-01-06 13:55:05 +01:00
Gav Wood 8bf03bb8ff Secure trie functions & structs. 2016-01-06 13:53:23 +01:00
Gav Wood 0125125c27 Semantic version test fix. 2016-01-05 19:05:51 +01:00
arkpar 73405cc74c Fixed timeout signature; Added usage example 2016-01-04 23:58:59 +01:00
arkpar 39f2dc9e2f Style 2016-01-04 13:49:32 +01:00
arkpar 32fcc6b3e9 Removed fmt file 2016-01-03 09:23:45 +01:00
arkpar 2cdf4ebd0a Merge branch 'master' of github.com:gavofyork/ethcore-util into network 2016-01-03 09:22:26 +01:00
arkpar 9e0c8e3d8b Documentation 2015-12-30 12:23:36 +01:00
arkpar 267495c264 User IO messages 2015-12-28 11:41:51 +01:00
arkpar 634b6be1e6 fixed warnings 2015-12-26 15:50:55 +01:00
arkpar fa1b74fa53 minor fixes 2015-12-26 15:48:41 +01:00
debris 88debb2190 address to and from h256 2015-12-24 00:31:43 +01:00
arkpar 416c2ec3e4 Merge branch 'master' of github.com:gavofyork/ethcore-util into network 2015-12-22 22:23:53 +01:00
arkpar 3ad262e18f more networking 2015-12-22 22:23:43 +01:00
arkpar f34b22c65b cache item count in Rlp 2015-12-22 22:23:01 +01:00
debris 9220e0c49f missing Error case 2015-12-21 02:30:38 +01:00
debris be2b041ee4 fixed semantic version tests 2015-12-21 01:57:34 +01:00
Gav Wood 7ed49bea4d Merge pull request #20 from gavofyork/uint
convenient creation of uint
2015-12-20 12:55:51 +00:00
Gav Wood 72a24ad023 SemanticVersion struct.
Additional documentation.
2015-12-20 12:28:13 +00:00
arkpar 900fc833f0 Merge branch 'master' of github.com:gavofyork/ethcore-util into network 2015-12-19 14:19:14 +01:00
Gav Wood 0addfc186d Add tests for triedb, optimise tests for triedbmut. 2015-12-19 12:53:05 +00:00
Gav Wood cc192b2264 Merge remote-tracking branch 'origin/master' into triemut 2015-12-19 12:38:02 +00:00
Gav Wood 80cdde2972 Renamed RLP's generic submodules to prevent systematic name clashing.
Repotted Trie module.
2015-12-19 12:35:26 +00:00
debris f7ee9436cd more convinient creation of uint 2015-12-18 10:29:06 +01:00
arkpar 6e4850d4ae updated for new RLP interface 2015-12-17 14:05:13 +01:00
Gav Wood 2a5c6665cf Trie (immutable). 2015-12-17 12:48:47 +01:00
Gav Wood 674c667114 Rename Trie to TrieMut in preparation for immutable trie. 2015-12-17 12:43:50 +01:00
arkpar ba4620bd6c Merge branch 'master' of github.com:gavofyork/ethcore-util into network
Conflicts:
	src/lib.rs
	src/rlp.rs
	src/triehash.rs
2015-12-17 11:46:42 +01:00
arkpar a9bd050d2f Net service 2015-12-17 11:42:30 +01:00
debris 926efb6fc8 docs, tests and bugfixes for squeeze 2015-12-16 17:12:20 +01:00
debris 56de081381 squeeze is pub 2015-12-16 16:27:27 +01:00
debris ca1a6bd791 heapsize && squeeze 2015-12-16 16:23:21 +01:00
debris 1e6694ec7f removed unused stuff 2015-12-15 16:36:38 +01:00
debris 9231bc6622 read_list -> as_list 2015-12-14 12:03:48 +01:00
debris de4a227a47 decoding fixed sized arrays 2015-12-14 11:56:11 +01:00
debris fed599fbb9 Merge branch 'master' of https://github.com/gavofyork/ethcore-util into hash_changes 2015-12-13 22:44:38 +01:00
debris 83af940223 h264 2015-12-13 22:44:28 +01:00
Gav Wood d94c55133b Trie takes a reference to HashDB. 2015-12-13 19:36:49 +01:00
debris 6bc56ad004 added raw method to RlpStream. usefull for quicklookup 2015-12-12 15:57:08 +01:00
debris 38f813a5e6 fast mul by 10 2015-12-12 13:32:42 +01:00
debris 862702b9c7 implemented rem, lenient from_str, from_dec_str for uint 2015-12-12 06:04:24 +01:00
debris 16cadf1a64 hash for uint 2015-12-11 14:40:28 +01:00
debris f19d044e7c renamed new_pre_existing to new_existing 2015-12-11 03:49:15 +01:00
debris b487f8f20e TrieDB root is borrowed 2015-12-11 03:00:39 +01:00
debris 4210b957ac triedb db is borrowed instead of being owned 2015-12-10 15:48:25 +01:00
debris 6db12408dc fixed uint multiplication 2015-12-09 14:50:01 +01:00
debris d2b1b92f9e removed unused macros.rs 2015-12-09 11:05:27 +01:00
debris 0e343d078c rlp encodable and decodable for options 2015-12-08 19:01:37 +01:00
debris b657a15100 val_at rlp method 2015-12-08 14:44:22 +01:00
debris d5ab429e77 changed order of reexports 2015-12-08 13:02:32 +01:00
debris 36c586eb21 final changes in rlp refactor 2015-12-08 12:59:19 +01:00
debris db762c534e docs tests are passing 2015-12-08 12:40:11 +01:00
debris 4e79fc641c Merge branch 'master' of https://github.com/gavofyork/ethcore-util into rlp_refactor 2015-12-08 12:36:33 +01:00
debris 51eff239fa rlpstream separated to its own submodule 2015-12-08 12:33:05 +01:00
debris 701aaf126d fixed rlp reexports 2015-12-08 00:53:28 +01:00
debris 4419924154 decoder refactor applied 2015-12-08 00:45:04 +01:00
debris cb5ec8c0af decodable implementations 2015-12-08 00:27:12 +01:00
debris 0de75185aa decodable trait impl in progress 2015-12-08 00:07:07 +01:00
debris 7e287755ca rlp view interface + refactor 2015-12-07 23:47:26 +01:00
Gav Wood 03674cad3b Documentation. 2015-12-07 17:20:15 +01:00
debris 36bea4692e refector init 2015-12-07 16:32:06 +01:00
Gav Wood 5a889a35be Merge branch 'master' of github.com:gavofyork/ethcore-util 2015-12-07 15:03:02 +01:00
Gav Wood fcae9034ac Trie documentation and code consolidation. 2015-12-07 15:00:54 +01:00
debris 8cf437b349 rlp uses elastic array 2015-12-07 11:27:12 +01:00
debris 182f356467 replace linked list with vec 2015-12-06 11:42:15 +01:00
debris 9b080c9161 microoptimization 2015-12-06 11:20:37 +01:00
debris 816b75cc87 Merge branch 'master' of https://github.com/gavofyork/ethcore-util 2015-12-05 02:02:10 +01:00
Gav Wood 38f0af1aa0 Code cleanups. 2015-12-04 20:04:26 +01:00
Gav Wood cfd858668f Merge branch 'master' of github.com:gavofyork/ethcore-util 2015-12-04 18:06:18 +01:00
Gav Wood 53547adea8 Fix for trie.
Benchmarks for Trie.
2015-12-04 18:05:59 +01:00
debris 94edc594d7 docs 2015-12-04 13:12:11 +01:00
debris 2805dfe22d removed num library from dependencies 2015-12-04 11:40:54 +01:00
debris 98feaa4f16 docs 2015-12-04 03:39:13 +01:00
debris 40f5bb6da2 cleanedup uint.rs, converted spaces to tabs 2015-12-04 03:02:53 +01:00
arkpar c8bac97be1 Merge branch 'master' of github.com:gavofyork/ethcore-util into network 2015-12-03 19:32:33 +01:00
arkpar 668d735fa7 U256 to byts conversion 2015-12-03 19:07:08 +01:00
Gav Wood 1cb6cc0b87 Stress-tests for trie. All passing. 2015-12-03 18:42:51 +01:00
arkpar 34acc420f2 Merge branch 'master' of github.com:gavofyork/ethcore-util into network
Conflicts:
	src/triehash.rs
2015-12-03 15:15:17 +01:00
arkpar 2e3750323a Bugfixes; Move discovery draft to a module 2015-12-03 15:11:40 +01:00
Gav Wood bb9163ac58 Merge branch 'master' of github.com:gavofyork/ethcore-util 2015-12-03 14:56:57 +01:00
Gav Wood cbbe5ee0fe trie node ref counter. good for testing. 2015-12-03 14:56:39 +01:00
debris b2376dfc7b removed duplicate tests 2015-12-03 13:11:02 +01:00
debris 611226c117 small changes in tests 2015-12-03 11:36:20 +01:00
debris 84eb30a133 empty lists tests 2015-12-03 06:06:42 +01:00
debris 05f7e85d30 rlp tests, the beginning 2015-12-03 05:44:35 +01:00
Gav Wood 84cc7715b4 Fix trie - tests pass. 2015-12-03 00:50:14 +01:00
Gav Wood c39fa7f973 Merge branch 'master' of github.com:gavofyork/ethcore-util 2015-12-03 00:33:16 +01:00
Gav Wood b99cefb9d6 Fix for node removal from trie. 2015-12-03 00:32:58 +01:00
debris 8b8a2e39e2 trie test failing 2015-12-03 00:29:31 +01:00
Gav Wood 3143e614a8 Merge branch 'master' of github.com:gavofyork/ethcore-util 2015-12-02 23:50:35 +01:00
Gav Wood f20665c41a Fix test. 2015-12-02 23:50:14 +01:00
debris 46d841f81f removed redundant lifetime 2015-12-02 23:35:34 +01:00
debris fe4141237e Merge branch 'master' of https://github.com/gavofyork/ethcore-util 2015-12-02 23:13:45 +01:00
Gav Wood 8c9340d3cf Remove unused uses. 2015-12-02 23:01:32 +01:00
Gav Wood 1b41b96dd1 Clear up warnings. 2015-12-02 23:00:36 +01:00
Gav Wood 8b481d5e11 Remove. Untested. 2015-12-02 22:59:00 +01:00
debris 166b84d489 removed duplicate tests 2015-12-02 22:56:38 +01:00
debris b9181b42bc *.json test files 2015-12-02 22:49:47 +01:00
debris 2cbbc872ff json-tests init 2015-12-02 21:50:33 +01:00
arkpar 6f2839086a Merge branch 'master' of github.com:gavofyork/ethcore-util into network 2015-12-02 20:12:42 +01:00
arkpar 75b1de0482 Session 2015-12-02 20:11:13 +01:00
debris 9c85e4d305 commented out tests 2015-12-02 17:52:06 +01:00
Gav Wood 729968ebeb Merge branch 'master' of github.com:gavofyork/ethcore-util 2015-12-02 15:05:21 +01:00
Gav Wood c184758972 Reduce time needed for stress test. 2015-12-02 15:04:34 +01:00
debris 9650494311 remove redundant prints 2015-12-02 15:03:47 +01:00
Gav Wood 65d49f280c Trie fix. 2015-12-02 15:03:20 +01:00
debris b8c1447c04 removed fmt::Debug from append 2015-12-02 14:29:09 +01:00
debris aa02a71d09 removed DecoderError::BadRlp 2015-12-02 14:20:41 +01:00
debris 356be1c635 rlp payload_info method 2015-12-02 14:14:12 +01:00
debris 35ae32a8a5 payload_info moved to decoder 2015-12-02 14:05:17 +01:00
debris 21f87cfb0f ItemInfo -> PayloadInfo 2015-12-02 13:58:29 +01:00
debris 18a6090ce5 fixed trie_hash panic when he was processing duplicates 2015-12-02 12:57:25 +01:00
arkpar 10a43c1fed Encrypted connection 2015-12-02 12:07:46 +01:00
Gav Wood 706428acbe Random tests. 2015-12-02 02:44:45 +01:00
Gav Wood fbab7f3cf3 Random trie tests. 2015-12-02 02:37:26 +01:00
Gav Wood 5468210cfd Fix bad test. 2015-12-02 00:43:09 +01:00
debris 60dc3decaa Merge branch 'master' of https://github.com/gavofyork/ethcore-util 2015-12-02 00:22:47 +01:00
debris 73be98fb24 additional tests for insert 2015-12-02 00:21:03 +01:00
Gav Wood 88655203b5 Merge branch 'master' of github.com:gavofyork/ethcore-util 2015-12-02 00:19:58 +01:00
Gav Wood 21730b49e6 Fix up trie pretty print. 2015-12-02 00:14:14 +01:00
debris beaf9117d4 lifetime of tria.at 2015-12-01 23:32:23 +01:00
Gav Wood 3fedfb7682 Merge branch 'master' of github.com:gavofyork/ethcore-util 2015-12-01 23:19:01 +01:00
Gav Wood 6ba9af18e9 Fiddling with tests. 2015-12-01 23:15:23 +01:00
debris 0cec68b59e fixed trie get and trie print 2015-12-01 23:14:38 +01:00
Gav Wood c1c3152094 Avoid crying if we can't initialise the logger. 2015-12-01 22:44:18 +01:00
Gav Wood 9a5be1eee4 Known good. 2015-12-01 22:38:34 +01:00
Gav Wood 67b737c1f8 Fix one trie bug. 2015-12-01 22:22:52 +01:00
Gav Wood 4be633ad94 Merge branch 'master' of github.com:gavofyork/ethcore-util 2015-12-01 20:35:47 +01:00
Gav Wood 0d90b2c1f8 Minor fixes to trie printing. 2015-12-01 20:35:34 +01:00
debris 630ab57041 Merge branch 'master' of https://github.com/gavofyork/ethcore-util into at 2015-12-01 20:35:13 +01:00
debris ec09deefb7 printing value of branch 2015-12-01 20:34:49 +01:00
Gav Wood ba270ddb6b Merge branch 'master' of github.com:gavofyork/ethcore-util 2015-12-01 20:25:06 +01:00
Gav Wood 68065b1875 Insertion trie fix. 2015-12-01 20:24:47 +01:00
debris 6c1c619247 extension print 2015-12-01 20:24:33 +01:00
Gav Wood 18de819344 Merge branch 'master' of github.com:gavofyork/ethcore-util 2015-12-01 19:45:48 +01:00
Gav Wood 8073adff68 Fix for adding item beyond a leaf. 2015-12-01 19:45:30 +01:00
debris 4a71c1266a removed build warnings 2015-12-01 19:24:14 +01:00
debris 665dfd622e // 2015-12-01 19:20:48 +01:00
debris 449e468778 Merge branch 'master' of https://github.com/gavofyork/ethcore-util into at 2015-12-01 19:19:43 +01:00
debris b8b8e4c61a printing trie 2015-12-01 19:19:16 +01:00
Gav Wood afbff3689c Merge branch 'master' of github.com:gavofyork/ethcore-util 2015-12-01 19:10:03 +01:00
Gav Wood d2d2f2a8fc Fix one bug. 2015-12-01 19:09:48 +01:00
debris 4f5399c558 improved printing 2015-12-01 18:43:44 +01:00
debris 8a2082d217 Merge branch 'master' of https://github.com/gavofyork/ethcore-util into at 2015-12-01 18:26:07 +01:00
debris ea03811a6e print trie 2015-12-01 18:25:47 +01:00
Gav Wood 7f6efa9a8f pretty (hex) printing. 2015-12-01 18:25:18 +01:00
Gav Wood fa80d376d3 Fix nibbleslice
Merge branch 'master' of github.com:gavofyork/ethcore-util
2015-12-01 17:48:13 +01:00
Gav Wood 3f5bd90b2b Easier debugging output for nibbleslice. 2015-12-01 17:43:24 +01:00