aboutsummaryrefslogtreecommitdiffstats
path: root/miner
Commit message (Expand)AuthorAgeFilesLines
* miner: ignore a tx's transactor after a gas limit has been returnedobscuren2015-04-211-3/+19
* miner: go fmtobscuren2015-04-201-8/+7
* Switched getWork third output from difficulty to targetVitalik Buterin2015-04-201-1/+8
* miner: fixed remote miner current workobscuren2015-04-201-1/+2
* miner: removed default timer & update dag when threads > 0obscuren2015-04-202-16/+8
* add extra space to miner iconFabian Vogelsteller2015-04-171-1/+1
* miner: start a newly registered agent if the miner is running. Closes #681obscuren2015-04-152-3/+9
* miner: moved bad uncle logging to ridiculous log level. Closes #720obscuren2015-04-151-2/+5
* miner: don't break loop when encountering gas limit reach errobscuren2015-04-141-8/+7
* Improved transaction poolobscuren2015-04-091-1/+1
* Changed how logs are being recordedobscuren2015-04-081-0/+2
* fixed stop of minerobscuren2015-04-081-14/+12
* Updated loggingobscuren2015-04-071-6/+11
* Fixed pending statesobscuren2015-04-072-20/+64
* Block header changed & console miner controlobscuren2015-04-062-4/+10
* removed hash rate from info log. Added hashrate js funcobscuren2015-04-051-1/+1
* Updated loggingobscuren2015-04-053-13/+18
* Make sure we're not mining on an invalid TSobscuren2015-04-041-0/+3
* Put the old hammer back in <3obscuren2015-04-021-1/+1
* info => debugobscuren2015-04-021-0/+2
* Removed old (unused) argumentobscuren2015-04-021-1/+1
* Fixed uncle rewards in minerobscuren2015-04-022-5/+2
* Fixed minerobscuren2015-03-273-15/+35
* Moved output to debugobscuren2015-03-261-1/+1
* Improved miner recoveryobscuren2015-03-251-22/+16
* Event fixes for minerobscuren2015-03-241-5/+3
* Changed minerobscuren2015-03-244-38/+48
* fixed bad unclesobscuren2015-03-241-2/+11
* moved state and vm to coreobscuren2015-03-231-1/+1
* Fixed issues with stalled remote minerobscuren2015-03-232-4/+9
* logging for possible unclesobscuren2015-03-231-10/+13
* Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into developobscuren2015-03-231-0/+81
|\
| * Move RemoteAgent to miner pkgTaylor Gerring2015-03-231-0/+81
* | finally merged *the missing*obscuren2015-03-231-15/+43
|/
* Get work / submit work partially implemented.obscuren2015-03-221-2/+6
* Removed some commentsobscuren2015-03-211-1/+2
* wipobscuren2015-03-212-2/+6
* conversions. -compilable-obscuren2015-03-182-14/+16
* Moved ethutil => commonobscuren2015-03-161-5/+5
* POW fixesobscuren2015-03-141-4/+0
* Improved errors. Closes #475obscuren2015-03-141-5/+3
* Return proper errorobscuren2015-03-141-0/+1
* Removed some of that gas pre pay magicobscuren2015-03-131-1/+0
* miner: provide coinbase when starting the minerFelix Lange2015-03-121-20/+10
* Use the state to up the balance of the coinbaseobscuren2015-03-111-2/+6
* Separated block db from state db. Partial fix for #416obscuren2015-03-071-1/+1
* Queued approach to delivering chain eventsobscuren2015-03-062-2/+3
* debug comments & pow handlingobscuren2015-03-061-1/+5
* Miner fixes and updates (including miner)obscuren2015-03-051-3/+7
* Fixed genesisobscuren2015-03-041-1/+1
* Changed nonce to a uint64obscuren2015-03-042-4/+4
* Merge branch 'jsonlogs' of https://github.com/ethersphere/go-ethereum into et...obscuren2015-03-041-0/+10
|\
| * Merge remote-tracking branch 'tgerring/jsonlogs' into jsonlogszelig2015-03-031-1/+9
| |\
| | * Implement eth.miner.new_block eventTaylor Gerring2015-03-011-1/+9
* | | Fixes and debug addedobscuren2015-03-043-2/+8
* | | mergeobscuren2015-03-042-6/+15
|\| |
| * | Report debug hash rateobscuren2015-03-012-6/+15
| |/
* | fixed pow stuffobscuren2015-03-042-3/+7
* | Introducing ethashMatthew Wampler-Doty2015-03-032-4/+9
|/
* Fixed consensus issue for refundingobscuren2015-02-271-2/+2
* Minor updates for releaseobscuren2015-02-211-2/+0
* fixed mergeobscuren2015-02-201-0/+2
|\
* \ Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into developobscuren2015-02-201-2/+2
|\ \
| * | Implement command line argument to set the amount of agents created by the minerMaran2015-02-191-2/+2
| |/
* / Optimisations and fixed a couple of DDOS issues in the minerobscuren2015-02-201-9/+13
|/
* "centralised" mining to backend. Closes #323obscuren2015-02-172-8/+7
* Resolved some bugs in the minerobscuren2015-02-151-11/+10
* Fixed mining & limited hash powerobscuren2015-02-142-19/+40
* Update balance label when miningobscuren2015-02-141-1/+2
* Propagate blocksobscuren2015-02-141-0/+1
* Fixed a few issues in the miner and updated hash rate titleobscuren2015-02-143-28/+39
* Basic structure minerobscuren2015-02-103-266/+153
* mergedobscuren2015-02-091-1/+1
|\
| * Merge pull request #290 from Gustav-Simonsson/correct_block_parent_timestamp_...Jeffrey Wilcke2015-02-061-1/+1
| |\
| | * Correct block parent timestamp check and typosGustav Simonsson2015-02-041-1/+1
* | | Merge branch 'develop' into minerobscuren2015-02-061-6/+4
|\| |
| * | set uncles regardless of empty uncle list. Fixes invalid blocks being minedobscuren2015-02-051-3/+1
* | | wipobscuren2015-02-061-7/+35
|/ /
* | Filteringobscuren2015-02-051-4/+9
* | WIP minerobscuren2015-02-041-0/+164
|/
* Refactored ethutil.Config.Db outobscuren2015-01-071-3/+3
* Allow extra to be set for mined blocksobscuren2015-01-061-0/+2
* BlockManager => BlockProcessorobscuren2015-01-051-5/+5
* Updated miner to new block apiobscuren2014-12-301-3/+6
* Refactored block & Transactionobscuren2014-12-231-5/+5
* mergeobscuren2014-12-191-3/+3
|\
| * Created generic message (easy for testing)obscuren2014-12-181-3/+3
* | adapt miner to new backend. use events to broadcast new mined blockszelig2014-12-151-4/+3
|/
* states moved to chainobscuren2014-12-111-1/+1
* Moved powobscuren2014-12-101-3/+5
* upped proto version and modified block poolobscuren2014-12-051-1/+0
* Skip mining on transactions that don't meet the min accepted gas priceobscuren2014-12-051-6/+16
* Improved and simplified wallet functions and behaviourobscuren2014-12-041-1/+1
* Renamed `chain` => `core`obscuren2014-12-041-8/+8
* merge errors fixedobscuren2014-12-021-8/+2
|\
| * Changed the way transactions are being added to the transaction poolobscuren2014-12-021-4/+5
* | Fixed mergeobscuren2014-11-291-2/+1
|\|
| * Changed refundobscuren2014-11-291-1/+1
| * GasData changes & removed min gas priceobscuren2014-11-291-1/+0
* | Added a callback mechanism to chain adding.obscuren2014-11-191-2/+5
* | Begin of moving objects to types packageobscuren2014-11-181-7/+8
|/
* Fixed bloom, updated mining & block processingobscuren2014-11-101-3/+26
* Implemented new miner w/ ui interface for merged mining. Closes #177obscuren2014-11-071-144/+154
* Reworked chain handling processobscuren2014-11-041-2/+5
* StateManager => BlockManagerobscuren2014-11-041-5/+5
* ethminer => minerobscuren2014-10-311-0/+217
3935">(alignment), dont_bother_me_again_checkbox); gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (warning_dialog)->vbox), alignment, FALSE, FALSE, 0); gtk_widget_show_all (warning_dialog); gtk_signal_connect (GTK_OBJECT (warning_dialog), "clicked", GTK_SIGNAL_FUNC (warning_dialog_clicked_callback), dont_bother_me_again_checkbox); } /* The following signal handlers are used to display the development warning as soon as the first view is created. */ static void view_map_callback (GtkWidget *widget, void *data) { gtk_signal_disconnect_by_func (GTK_OBJECT (widget), GTK_SIGNAL_FUNC (view_map_callback), data); show_development_warning (GTK_WINDOW (widget)); } static void new_view_created_callback (EShell *shell, EShellView *view, void *data) { gtk_signal_disconnect_by_func (GTK_OBJECT (shell), GTK_SIGNAL_FUNC (new_view_created_callback), data); gtk_signal_connect (GTK_OBJECT (view), "map", view_map_callback, NULL); } /* This is for doing stuff that requires the GTK+ loop to be running already. */ static gint idle_cb (void *data) { GSList *uri_list; GNOME_Evolution_Shell corba_shell; CORBA_Environment ev; EShellConstructResult result; EShellStartupLineMode startup_line_mode; GSList *p; gboolean have_evolution_uri; gboolean display_default; gboolean displayed_any; CORBA_exception_init (&ev); uri_list = (GSList *) data; if (! start_online && ! start_offline) startup_line_mode = E_SHELL_STARTUP_LINE_MODE_CONFIG; else if (start_online) startup_line_mode = E_SHELL_STARTUP_LINE_MODE_ONLINE; else startup_line_mode = E_SHELL_STARTUP_LINE_MODE_OFFLINE; shell = e_shell_new (evolution_directory, ! no_splash, startup_line_mode, &result); g_free (evolution_directory); switch (result) { case E_SHELL_CONSTRUCT_RESULT_OK: e_shell_config_factory_register (shell); gtk_signal_connect (GTK_OBJECT (shell), "no_views_left", GTK_SIGNAL_FUNC (no_views_left_cb), NULL); gtk_signal_connect (GTK_OBJECT (shell), "destroy", GTK_SIGNAL_FUNC (destroy_cb), NULL); if (!getenv ("EVOLVE_ME_HARDER")) gtk_signal_connect (GTK_OBJECT (shell), "new_view_created", GTK_SIGNAL_FUNC (new_view_created_callback), NULL); corba_shell = bonobo_object_corba_objref (BONOBO_OBJECT (shell)); corba_shell = CORBA_Object_duplicate (corba_shell, &ev); break; case E_SHELL_CONSTRUCT_RESULT_CANNOTREGISTER: corba_shell = oaf_activate_from_id (E_SHELL_OAFIID, 0, NULL, &ev); if (ev._major != CORBA_NO_EXCEPTION || corba_shell == CORBA_OBJECT_NIL) { e_notice (NULL, GNOME_MESSAGE_BOX_ERROR, _("Cannot access the Ximian Evolution shell.")); CORBA_exception_free (&ev); gtk_main_quit (); return FALSE; } break; default: e_notice (NULL, GNOME_MESSAGE_BOX_ERROR, _("Cannot initialize the Ximian Evolution shell: %s"), e_shell_construct_result_to_string (result)); CORBA_exception_free (&ev); gtk_main_quit (); return FALSE; } have_evolution_uri = FALSE; for (p = uri_list; p != NULL; p = p->next) { const char *uri; uri = (const char *) p->data; if (strncmp (uri, E_SHELL_URI_PREFIX, E_SHELL_URI_PREFIX_LEN) == 0 || strncmp (uri, E_SHELL_DEFAULTURI_PREFIX, E_SHELL_DEFAULTURI_PREFIX_LEN) == 0) have_evolution_uri = TRUE; } if (shell == NULL) { /* We're talking to a remote shell. If the user didn't * ask us to open any particular URI, then open another * view of the default URI */ if (uri_list == NULL) display_default = TRUE; else display_default = FALSE; } else { /* We're starting a new shell. If the user didn't specify * any evolution: URIs to view, AND we can't load the * user's previous settings, then show the default URI. */ if (! have_evolution_uri) { if (! e_shell_restore_from_settings (shell, FALSE)) display_default = TRUE; else display_default = FALSE; } else { display_default = FALSE; } } displayed_any = FALSE; for (p = uri_list; p != NULL; p = p->next) { const char *uri; uri = (const char *) p->data; GNOME_Evolution_Shell_handleURI (corba_shell, uri, &ev); if (ev._major == CORBA_NO_EXCEPTION) displayed_any = TRUE; else { g_warning ("CORBA exception %s when requesting URI -- %s", ev._repo_id, uri); CORBA_exception_free (&ev); } } g_slist_free (uri_list); if (display_default && ! displayed_any) { const char *uri; uri = E_SHELL_VIEW_DEFAULT_URI; GNOME_Evolution_Shell_handleURI (corba_shell, uri, &ev); if (ev._major != CORBA_NO_EXCEPTION) g_warning ("CORBA exception %s when requesting URI -- %s", ev._repo_id, uri); } CORBA_Object_release (corba_shell, &ev); CORBA_exception_free (&ev); if (shell == NULL) gtk_main_quit (); return FALSE; } int main (int argc, char **argv) { struct poptOption options[] = { { "no-splash", '\0', POPT_ARG_NONE, &no_splash, 0, N_("Disable splash screen"), NULL }, { "offline", '\0', POPT_ARG_NONE, &start_offline, 0, N_("Start in offline mode"), NULL }, { "online", '\0', POPT_ARG_NONE, &start_online, 0, N_("Start in online mode"), NULL }, { "debug", '\0', POPT_ARG_STRING, &evolution_debug_log, 0, N_("Send the debugging output of all components to a file."), NULL }, { NULL, '\0', POPT_ARG_INCLUDE_TABLE, &oaf_popt_options, 0, NULL, NULL }, POPT_AUTOHELP { NULL, '\0', 0, NULL, 0, NULL, NULL } }; GSList *uri_list; const char **args; poptContext popt_context; bindtextdomain (PACKAGE, EVOLUTION_LOCALEDIR); textdomain (PACKAGE); /* Make ElectricFence work. */ free (malloc (10)); gnome_init_with_popt_table ("Evolution", VERSION " [" SUB_VERSION "]", argc, argv, options, 0, &popt_context); if (start_online && start_offline) { fprintf (stderr, _("%s: --online and --offline cannot be used together.\n Use %s --help for more information.\n"), argv[0], argv[0]); exit (1); } if (evolution_debug_log) { int fd; fd = open (evolution_debug_log, O_WRONLY | O_CREAT | O_TRUNC, 0600); if (fd) { dup2 (fd, STDOUT_FILENO); dup2 (fd, STDERR_FILENO); close (fd); } else g_warning ("Could not set up debugging output file."); } oaf_init (argc, argv); #ifdef GTKHTML_HAVE_GCONF gconf_init (argc, argv, NULL); #endif glade_gnome_init (); e_cursors_init (); e_icon_factory_init (); gnome_window_icon_set_default_from_file (EVOLUTION_IMAGES "/evolution-inbox.png"); if (! bonobo_init (CORBA_OBJECT_NIL, CORBA_OBJECT_NIL, CORBA_OBJECT_NIL)) { e_notice (NULL, GNOME_MESSAGE_BOX_ERROR, _("Cannot initialize the Bonobo component system.")); exit (1); } /* FIXME */ evolution_directory = g_concat_dir_and_file (g_get_home_dir (), "evolution"); if (! e_setup (evolution_directory)) exit (1); uri_list = NULL; args = poptGetArgs (popt_context); if (args != NULL) { const char **p; for (p = args; *p != NULL; p++) uri_list = g_slist_prepend (uri_list, (char *) *p); } gtk_idle_add (idle_cb, uri_list); gtk_widget_push_visual (gdk_rgb_get_visual ()); gtk_widget_push_colormap (gdk_rgb_get_cmap ()); bonobo_main (); return 0; }