Juan Batiz-Benet
c84a714b16
peer change: peer.Peer -> peer.ID
...
this is a major refactor of the entire codebase
it changes the monolithic peer.Peer into using
a peer.ID and a peer.Peerstore.
Other changes:
- removed handshake3.
- testutil vastly simplified peer
- secio bugfix + debugging logs
- testutil: RandKeyPair
- backpressure bugfix: w.o.w.
- peer: added hex enc/dec
- peer: added a PeerInfo struct
PeerInfo is a small struct used to pass around a peer with
a set of addresses and keys. This is not meant to be a
complete view of the system, but rather to model updates to
the peerstore. It is used by things like the routing system.
- updated peer/queue + peerset
- latency metrics
- testutil: use crand for PeerID gen
RandPeerID generates random "valid" peer IDs. it does not
NEED to generate keys because it is as if we lost the key
right away. fine to read some randomness and hash it. to
generate proper keys and an ID, use:
sk, pk, _ := testutil.RandKeyPair()
id, _ := peer.IDFromPublicKey(pk)
Also added RandPeerIDFatal helper
- removed old spipe
- updated seccat
- core: cleanup initIdentity
- removed old getFromPeerList
2014-12-23 08:33:32 -08:00
Juan Batiz-Benet
41751b4938
Integrated new network into ipfs
2014-12-16 14:47:29 -08:00
Markus Amalthea Magnuson
dbefedbb2e
Fix typo.
...
”configurationx” -> ”configuration”
2014-12-14 20:55:29 +01:00
Brian Tiger Chow
73a89e161d
refactor(peerstore) s/Get/FindOrCreate
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 02:10:42 -08:00
Brian Tiger Chow
3f63e50c54
fix(peer): use error-checking multiaddr method
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 01:10:25 -08:00
Juan Batiz-Benet
59c1ab2fc3
Merge pull request #406 from jbenet/new-msgio
...
updated msgio
2014-12-06 16:20:51 -08:00
Juan Batiz-Benet
5c64ee90e0
cmds: remove info logging
2014-12-06 10:27:12 -05:00
Brian Tiger Chow
697453dfc2
fix(cmd/bootstrap) s/remove/rm
...
@jbenet
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:56:28 -08:00
Matt Bell
c91805d7bd
core/commands: Fixed build on Windows
2014-12-05 20:56:26 -08:00
Brian Tiger Chow
4882904c3e
fix: s/bootstrap rm/boostrap remove
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:56:26 -08:00
Brian Tiger Chow
3bdb36614e
fix(cmd/id) determine offline-ness with !node.OnlineMode()
...
It's better to have one mechanism for determining whether we're offline
and to improve the SnR of this mechanism over time. We presently have
too many arbitrary heuristics for determining whether we're running in
offline mode. TRTTD is to use polymorphism to eliminate these
conditional checks. (instantiate the node with offline versions of
routing, network, etc.) It'll clean up the core constructor, make it
easier to create ephemeral nodes, and eliminate a class of errors.
@whyrusleeping @jbenet
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:56:26 -08:00
Brian Tiger Chow
65c6bd07bf
feat(core/commands): expose commands to allow for the development of high-level interface
...
+ style: sort command list
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:56:26 -08:00
Juan Batiz-Benet
11508f8f19
Merge pull request #372 from chriscool/add_quiet_flag
...
Implement the -q or --quiet flag to add with minimal output
2014-12-05 15:45:49 -05:00
Jeromy
b0e915be47
cleanup useless debug statement
2014-12-01 17:08:35 +00:00
Jeromy
28a32915b7
fix for #381
2014-12-01 08:34:07 +00:00
Christian Couder
5bfdc2e2b7
Add --quiet option to ipfs add
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2014-11-30 14:23:08 +01:00
Matt Bell
ab16237bc7
core/commands: Added no-op Mount implementation for Windows
2014-11-19 05:29:48 -08:00
Matt Bell
5461d76957
core/commands: Better syntax for 'pin ls' option value handling
2014-11-19 03:23:21 -08:00
Matt Bell
928f20b4bd
core/commands: pin ls: Default type to 'direct'
2014-11-19 01:44:51 -08:00
Matt Bell
9de01007d0
core/commands: pin ls: Accept 'type' option to specify type of pinned keys to list
2014-11-19 00:53:57 -08:00
Matt Bell
4c1a5f6816
core/commands: Restored 'pin'/'refs' option names
2014-11-19 00:36:30 -08:00
Matt Bell
87853f2bde
core/commands: Made 'add' use OptionRecursivePath
2014-11-19 00:36:03 -08:00
Matt Bell
49dc13e5dd
core/commands: Added plaintext marshaler for 'pin ls'
2014-11-18 23:20:38 -08:00
Matt Bell
db53de806c
core/commands: Made 'refs' output u.Keys instead of strings
2014-11-18 23:20:20 -08:00
Matt Bell
477c246c6c
core/commands: Fixed 'refs' option name collision
2014-11-18 23:09:53 -08:00
Matt Bell
edb8eeaecf
core/commands: Created a general key list output type and plaintext marshaler
2014-11-18 23:08:56 -08:00
Matt Bell
961e4504f1
core/commands: Fixed pin flag name (conflicted with global -r/--recursive flag)
2014-11-18 23:03:41 -08:00
Matt Bell
afc7b6f48d
core/commands: Added a 'pin ls' command
2014-11-18 23:02:33 -08:00
Juan Batiz-Benet
5aaa45db9a
transitioned ipfs2 -> ipfs
2014-11-18 06:15:00 -08:00
Juan Batiz-Benet
ad3f3e003f
removed old commands files
...
https://www.youtube.com/watch?v=kyFyAqLtHq8
2014-11-18 06:15:00 -08:00
Jeromy
ce223eef61
some small cleanup of logging
2014-11-01 16:07:56 -07:00
Jeromy
ae339a0320
remove dagwriter in favor of new importer function
2014-10-31 05:03:42 +00:00
Brian Tiger Chow
cea398b8a7
fix(all) log.Debug -> log.Debugf
2014-10-30 06:35:29 -07:00
Juan Batiz-Benet
b5fc3caea3
cmd/add: output file hash Fixed #239
2014-10-30 06:15:23 -07:00
Juan Batiz-Benet
70e1f9b6bc
make vendor
...
cc @whyrusleeping
2014-10-30 05:43:14 -07:00
Jeromy
71ac117546
Address concerns in PR
2014-10-30 06:23:31 +00:00
Jeromy
18ada93ec3
rewrite add command to use dagwriter, moved a pinner into the dagwriter for inline pinning
2014-10-30 04:40:48 +00:00
Jeromy
87407a99b9
add context to blockservice Get
2014-10-25 12:38:32 -07:00
Juan Batiz-Benet
184c25430b
go-vet friendly codebase
...
- distinguish log.Error and log.Errorf functions
- Initialize structs with field names
- A bit of unreachable code (defers)
2014-10-25 03:46:39 -07:00
Henry
4f42a26836
fixed --force flag for shutdown after update
2014-10-22 12:42:13 +02:00
Henry
3e40788188
updateApply: force shutdown check on daemon (TODO: force flag in cli)
2014-10-22 11:25:30 +02:00
Henry
cb73ea7ba4
removed duplicate logic
2014-10-22 11:25:30 +02:00
Henry
7ddf3836d0
implemented manual check and update (with signature verification)
2014-10-22 11:25:30 +02:00
Henry
5fa3053e19
added command stubs
2014-10-22 11:24:34 +02:00
Jeromy
3ee3c44d7c
flush!
2014-10-22 00:28:42 -07:00
Jeromy
31b0ff0307
add testing for pins
2014-10-22 00:28:41 -07:00
Juan Batiz-Benet
9ca87fbb93
peer.Peer is now an interface
...

2014-10-20 03:26:46 -07:00
Juan Batiz-Benet
9e3bfa28bb
Merge pull request #185 from cryptix/cmdObjects
...
object plumbing commands
2014-10-19 16:58:47 -07:00
Henry
468494e5e5
break with ErrObjectTooLarge
2014-10-19 17:07:03 +02:00
Henry
bc38bdf512
limit raw input to 512 kilobytes
2014-10-19 16:57:12 +02:00