Branch: refs/heads/master Home: https://github.com/btcsuite/btcd Commit: ab2ed710cbfd5504f68af910208c70092061bb54 https://github.com/btcsuite/btcd/commit/ab2ed710cbfd5504f68af910208c70092061bb54 Author: Olaoluwa Osuntokun <laol...@gmail.com> Date: 2015-04-24 (Fri, 24 Apr 2015)
Changed paths: M rpcserver.go M server.go Log Message: ----------- Fix 'add/delnode' type switch evaluation in server * The cases for the 'addnode' command were previously stacked on top the new cases for the 'node' command. The intended behavior was to create a fall through and handle both commands. However, trying to use this syntax with a type switch caused the first case to be ignored. * addnode' specific functions and structs in the server have been removed. Instead, the 'add' and 'del' subcommands are now proxied to the matching 'node' cmd functions.